
20 May
2010
20 May
'10
6:50 p.m.
Lassi Tuura wrote:
If you want to be amused, one of the most common template ones that bite us by generating tons of stuff all over the place is __PRETTY_FUNCTION__ inside the boost::shared_ptr's assertions :-)
Alas we can't enable -DNDEBUG for all our software, there are useful assertions elsewhere.
You can disable just BOOST_ASSERT with BOOST_DISABLE_ASSERTS though. But I suspect you don't want to do that either because you're using BOOST_ENABLE_ASSERT_HANDLER, or you wouldn't be getting the __PRETTY_FUNCTION__s. Patch current_function.hpp then. :-)