You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
243 B

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