repo.or.cz
/
librepilot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git]
/
ground
/
gcs
/
src
/
libs
/
eigen
/
failtest
/
swap_2.cpp
blob
c130ba6e4e2a5f2e59dbb8163d58091f30ed7497
1
#include
"../Eigen/Core"
2
3
using namespace
Eigen
;
4
5
int
main
()
6
{
7
VectorXf
a
(
10
),
b
(
10
);
8
VectorXf
const
&
ac
(
a
);
9
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
10
b
.
swap
(
ac
);
11
#else
12
b
.
swap
(
ac
.
const_cast_derived
());
13
#endif
14
}