Re: [Boost-bugs] [Boost C++ Libraries] #7028: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is defined

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7028: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-12 00:31:02


#7028: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is
defined
-------------------------------------+-------------------------------------
  Reporter: mgaunard | Owner: pdimov
      Type: Feature Requests | Status: reopened
 Milestone: To Be Determined | Component: utility
   Version: Boost Development | Severity: Problem
  Trunk | Keywords: BOOST_ASSERT assert
Resolution: | BOOST_ENABLE_ASSERT_HANDLER NDEBUG
-------------------------------------+-------------------------------------

Comment (by pdimov):

 I've added support for the new macro BOOST_ENABLE_ASSERT_DEBUG_HANDLER,
 which works as requested. It disables assertions when NDEBUG is defined,
 and is equivalent to BOOST_ENABLE_ASSERT_HANDLER otherwise.

 https://github.com/boostorg/assert/commit/f0e5bd15fb70c07ec943d01dc99aa4e507ceffe5

 This commit also redefines BOOST_ASSERT_MSG(expr,msg) as
 assert((expr)&&(msg)) by default, for consistency with BOOST_ASSERT. I'm
 open to suggestions as to how to optionally provide the old behavior of
 BOOST_ASSERT_MSG, suitably extended to BOOST_ASSERT as well.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7028#comment:19>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC