Hello,
There is a potential const qualifier missing in the file
xpr2.h, on line 524. The macro being defined there is for
binary operations between a Dim2 and a Scalar. There
is no const qualifier on the scalar part of the operation
(P& b).
Without the const, operations of the form A = B * s,
where A and B are descendants of xpr2 and s is a
scalar, are not possible. The reverse, A = s * B, is valid,
however, and the macro for that form contains the const
qualifier. Adding the const to the macro permits the
operation to compile.
I did not check to see if an equivalent bug is contained
in xpr1.h, as I am not using it in my work. I also did not
check to see if adding the const causes anything else
to fail. My preliminary tests had no changes.
If you have any comments or questions, I can be
reached at steven.m.wurster@lmco.com
Thanks,
Steve Wurster