Dear Eigen community, I found a problem in documentation. I try to used assert redefining (see https://eigen.tuxfamily.org/dox-devel/TopicAssertions.html) and I got wrong results. I am not going to write what happend there. Just see fix and you will see what is wrong (I added parentheses to if condition). #include <stdexcept> #undef eigen_assert #define eigen_assert(x) \ if (!(x)) { throw (std::runtime_error("Put your message here")); }
Thanks for noticing that! Fixed in 3.2 and devel branch (online docu will be updated within the next day).
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1273.