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