Re: [Boost-bugs] [Boost C++ Libraries] #3286: assert()-like functionality in release mode

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 09:58:46


#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 Olaf van der Spek <OlafvdSpek@…>):

 Are you suggesting I just don't define NDEBUG? That's not an optimal
 solution, as leaving assert() enabled could give a performance hit,
 because it's usually expected to be gone in release mode.
 The app is supposed not to depend on assert expressions being evaluated,
 that's why there should be another construct that is not excluded (by
 default) in release mode.

 I agree that it's certainly not suitable for all error handling. That
 doesn't mean there aren't a lot of situations where it would come in
 handy.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3286#comment:2>
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