source:
pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/failtest/map_on_const_type_actually_const_1.cpp@
142
Last change on this file since 142 was 136, checked in by , 8 years ago | |
---|---|
File size: 241 bytes |
Line | |
---|---|
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(float *ptr){ |
12 | Map<CV_QUALIFIER Vector3f>(ptr).coeffRef(0) = 1.0f; |
13 | } |
14 | |
15 | int main() {} |
Note:
See TracBrowser
for help on using the repository browser.