[eigen] exceptions in Eigen

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

Hey guys,

Has there been any thought of optionally using exceptions instead of assertions as error handling in Eigen?

I'm using Eigen in an environment where run-time debugging is pretty much impossible, and when Eigen asserts, it as expected brings the entire app down. What would be really great is instead of an assertion, it would throw an exception that I could catch, and then simply print an error string. 

I think that exception support would be a really great compile time option.

BTW, in general, I think Eigen is an awesome library, thanks.  I switched from boost's ublas to Eigen mostly because it is SO MUCH EASIER to wrap an Eigen class around an existing raw block of memory via ***::Map, I had to write bunch of classes to get ublas to support this feature.

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