
24 Jan
2011
24 Jan
'11
8:10 p.m.
On Sun, Jan 23, 2011 at 12:32 PM, Peter Dimov <pdimov@pdimov.com> wrote:
Beman Dawes wrote:
BOOST_ENABLE_ASSERT_MSG_HANDLER enables a separate error handler.
I think that the existing BOOST_ENABLE_ASSERT_HANDLER should control the behavior of BOOST_ASSERT_MSG as well. It's very unlikely that users will want one of the macros to go to their own handler, and the other to keep calling std::abort, and in the current implementation, this is what will happen silently in existing projects that already define BOOST_ENABLE_ASSERT_HANDLER. I suspect that such users will prefer a link-time error, alerting them to the presence of BOOST_ASSERT_MSG macros in the program.
KISS, I guess. Will change, --Beman