[eigen] problem with operator() in development branch

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

I'm running with a very recent version of Eigen from the development branch.
The following code snippet works fine with Eigen 2

  Eigen::MatrixXd a(1,2), b(2,1);
  a << 1, 2;
  b << 2, 3;
  double c = (a*b)(0,0);
  std::cout << "c=" << c << std::endl;

but I get a compilation error with VC++ 2008 and the development branch Eigen

: error C2248: 'Eigen::ProductBase<Derived,Lhs,Rhs>::coeff' : cannot
access private member declared in class


Bill Greene

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/