ref_1.cpp 263 B

123456789101112131415161718
  1. #include "../Eigen/Core"
  2. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  3. #define CV_QUALIFIER const
  4. #else
  5. #define CV_QUALIFIER
  6. #endif
  7. using namespace Eigen;
  8. void call_ref(Ref<VectorXf> a) { }
  9. int main()
  10. {
  11. VectorXf a(10);
  12. CV_QUALIFIER VectorXf& ac(a);
  13. call_ref(ac);
  14. }