source: pacpussensors/trunk/Vislab/lib3dv/eigen/failtest/ref_3.cpp@ 139

Last change on this file since 139 was 136, checked in by ldecherf, 8 years ago

Doc

File size: 231 bytes
Line 
1#include "../Eigen/Core"
2
3using namespace Eigen;
4
5#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
6void call_ref(Ref<VectorXf> a) { }
7#else
8void call_ref(const Ref<const VectorXf> &a) { }
9#endif
10
11int main()
12{
13 VectorXf a(10);
14 call_ref(a+a);
15}
Note: See TracBrowser for help on using the repository browser.