ref_4.cpp 227 B

123456789101112131415
  1. #include "../Eigen/Core"
  2. using namespace Eigen;
  3. void call_ref(Ref<MatrixXf,0,OuterStride<> > a) {}
  4. int main()
  5. {
  6. MatrixXf A(10,10);
  7. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  8. call_ref(A.transpose());
  9. #else
  10. call_ref(A);
  11. #endif
  12. }