cart-elc

Source code for CART-ELC
git clone git://git.laack.co/cart-elc.git
Log | Files | Refs | README | LICENSE

block_nonconst_ctor_on_const_xpr_2.cpp (261B)


      1 #include "../Eigen/Core"
      2 
      3 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
      4 #define CV_QUALIFIER const
      5 #else
      6 #define CV_QUALIFIER
      7 #endif
      8 
      9 using namespace Eigen;
     10 
     11 void foo(CV_QUALIFIER Matrix3d &m){
     12     // row/column constructor
     13     Block<Matrix3d,3,1> b(m,0);
     14 }
     15 
     16 int main() {}