source:
pacpussensors/trunk/Vislab/lib3dv/eigen/failtest/ref_5.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 238 bytes |
Rev | Line | |
---|---|---|
[136] | 1 | #include "../Eigen/Core" |
2 | ||
3 | using namespace Eigen; | |
4 | ||
5 | void call_ref(Ref<VectorXf> a) { } | |
6 | ||
7 | int main() | |
8 | { | |
9 | VectorXf a(10); | |
10 | DenseBase<VectorXf> &ac(a); | |
11 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD | |
12 | call_ref(ac); | |
13 | #else | |
14 | call_ref(ac.derived()); | |
15 | #endif | |
16 | } |
Note:
See TracBrowser
for help on using the repository browser.