source:
pacpussensors/trunk/Vislab/lib3dv/eigen/failtest/diagonal_on_const_type_actually_const.cpp@
136
Last change on this file since 136 was 136, checked in by , 7 years ago | |
---|---|
File size: 250 bytes |
Rev | Line | |
---|---|---|
[136] | 1 | #include "../Eigen/Core" |
2 | ||
3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD | |
4 | #define CV_QUALIFIER const | |
5 | #else | |
6 | #define CV_QUALIFIER | |
7 | #endif | |
8 | ||
9 | using namespace Eigen; | |
10 | ||
11 | void foo(){ | |
12 | MatrixXf m; | |
13 | Diagonal<CV_QUALIFIER MatrixXf>(m).coeffRef(0) = 1.0f; | |
14 | } | |
15 | ||
16 | int main() {} |
Note:
See TracBrowser
for help on using the repository browser.