Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4100: some boost classes have sizeof that depends on NDEBUG
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-24 04:06:27
#4100: some boost classes have sizeof that depends on NDEBUG
----------------------------------+-----------------------------------------
Reporter: fjoe@⦠| Owner: jano_gaspar
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: circular_buffer
Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Comment (by anonymous):
I was not 100% correct. In this particular case BOOST_CB_ENABLE_DEBUG
(that depends on NDEBUG or BOOST_CB_DISABLE_DEBUG) should not affect
sizeof. You can use it to do some additional checks, but sizeof() should
always be the same.
NDEBUG is quite common macro. It should never affect sizeof.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4100#comment:5> 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:04 UTC