Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3286: assert()-like functionality in release mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-24 01:03:32
#3286: assert()-like functionality in release mode
------------------------------------------------------+---------------------
Reporter: Olaf van der Spek <OlafvdSpek@â¦> | Owner:
Type: Feature Requests | Status: new
Milestone: Boost 1.41.0 | Component: None
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
------------------------------------------------------+---------------------
Comment(by steven_watanabe):
The expansion of assert is controlled by the macro NDEBUG independently of
optimization options. Because of the way assert is designed, it is always
a bug if an assertion fails. This is due to more than just the fact that
assertions can be disabled. It is also due to the fact that a failed
assertion crashes the program. In addition, proper handling of errors
that are not bugs is much more complex than assert is capable of handling.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3286#comment:1> 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:00 UTC