Logo white

Peter M. Groen / openbr

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • openbr
  • 3rdparty
  • eigen-eigen-c58038c56923
  • failtest
  • ref_3.cpp
  • updated to latest Eigen
    65b1a58f
    Josh Klontz authored
    2015-11-02 08:51:17 -0500  
    Browse Code ยป
ref_3.cpp 231 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "../Eigen/Core"

using namespace Eigen;

#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
void call_ref(Ref<VectorXf> a) { }
#else
void call_ref(const Ref<const VectorXf> &a) { }
#endif

int main()
{
  VectorXf a(10);
  call_ref(a+a);
}