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: 2013-03-15 02:44:57


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

Comment (by steven_watanabe):

 Replying to [comment:14 eric_niebler]:
>
> Regardless, `BOOST_ASSERT` and `BOOST_ASSERT_MSG` ''must'' be made
 consistent.

 I agree, but...

 The only way to make it completely consistent is for BOOST_ASSERT_MSG to
 be implemented in terms of assert.

 {{{
 #define NDEBUG
 #include <boost/assert.hpp>
 #undef NDEBUG
 #include <cassert>
 }}}

 (I actually favor implementing BOOST_ASSERT_MSG using assert anyway, as I
 rather dislike the fact that boost/assert.hpp #includes <iostream>)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7028#comment:15>
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:12 UTC