[eigen] Feature proposal - add error string to help debug const/non-const mapping errors

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


Hi all,

I have been using the Map objects a lot lately, and I have seen that
often, a simple mistake of mapping a const pointer as, say, MatrixXd.
Obviously, this leads to a big compiler error, which is often
difficult to decipher. I propose that a small error string be added to
Map object, which will aid debugging. Something similar to
"you_mixed_different_types_use_cast_function".

This could prove very helpful. I know 3.2 beta is being planned, just
how big a change is this?

-- 
Rohit Garg

http://rpg-314.blogspot.com/

Graduate Student
Applied and Engineering Physics
Cornell University



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