[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

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

Rohit Garg


Graduate Student
Applied and Engineering Physics
Cornell University

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