2013/6/5 Andrey Semashev
I would very much prefer BOOST_ASSERT to stay as small and lightweight as possible and equivalent to the standard assert macro by default. One reason we're not using BOOST_ASSERT_MSG much is that it uses streaming expressions to format the error message, which turns out to be too heavy in some places (e.g. it prevents small functions from inlining and fragments the hot code too much). Please, make a new macro for this feature.
Hi, I second the problem with BOOST_ASSERT_MSG. And I'm thinking it can be trivially worked around: BOOST_ASSERT_MSG could be (conditionally) defined like so: #if defined(BOOST_ASSERT_MSG_SIMPLIFIED) #define BOOST_ASSERT_MSG( expr, msg ) assert( (expr) || !msg ) #else ... #endif Does this look like a good idea? Regards, Kris