> oh, I know about this issue.
> Gael: the issue is that ProductBase doesn't allow coeff-based access.
> But it inherits DenseBase. Honestly I think that it would be far
> simpler if we said that by convention, and xpr inheriting DenseBase
> has (usable) coeff methods. Is that OK? Do you see a big difficulty
> with allowing that? If you think that's really not possible, then do
> you agree that ProductBase should not inherit DenseBase anymore?
> 2010/5/26 Bill Greene <w.h.greene@xxxxxxxxx
>> 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