Boost C++ Libraries: Ticket #6609: Inconsistent BOOST_ASSERT and BOOST_ASSERT_MSG behavior https://svn.boost.org/trac10/ticket/6609 <p> BOOST_ASSERT and BOOST_VERIFY respect BOOST_DISABLE_ASSERTS and ignore NDEBUG when BOOST_ENABLE_ASSERT_HANDLER is defined. BOOST_ASSERT_MSG, however, always respects NDEBUG. </p> <p> Bug fix attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6609 Trac 1.4.3 genygetm@… Fri, 24 Feb 2012 13:01:24 GMT attachment set https://svn.boost.org/trac10/ticket/6609 https://svn.boost.org/trac10/ticket/6609 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchfile.patch</span> </li> </ul> Ticket viboes Mon, 28 May 2012 17:31:50 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6609#comment:1 https://svn.boost.org/trac10/ticket/6609#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">utility</span> </li> </ul> <p> Please set the component in the future if you want it to be analyzed. </p> Ticket viboes Sun, 03 Jun 2012 20:00:29 GMT type changed https://svn.boost.org/trac10/ticket/6609#comment:2 https://svn.boost.org/trac10/ticket/6609#comment:2 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Kazutoshi Satoda <k_satoda@…> Sun, 02 Dec 2012 11:53:19 GMT cc set https://svn.boost.org/trac10/ticket/6609#comment:3 https://svn.boost.org/trac10/ticket/6609#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">k_satoda@…</span> added </li> </ul> <p> -1 for the patch. The opposite seems more practical for me. Please see <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7028" title="#7028: Feature Requests: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is ... (reopened)">#7028</a>. </p> <p> The patch also looks incomplete. The related documentation should be updated, too. </p> Ticket genygetm@… Mon, 10 Dec 2012 09:54:09 GMT <link>https://svn.boost.org/trac10/ticket/6609#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6609#comment:4</guid> <description> <p> The fact is that the current behavior (i.e. BOOST_ASSERT ignoring NDEBUG when BOOST_ENABLE_ASSERT_HANDLER is set) is something that has been existing since the introduction of boost/assert.hpp in boost 1.27. </p> <p> BOOST_ASSERT_MSG is a new extension added in boost 1.46 and it does not to behave like BOOST_ASSERT. Nothing in the documentation on BOOST_ASSERT_MSG says it is by desing, so it is a bug. </p> <p> Ticket <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7028" title="#7028: Feature Requests: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is ... (reopened)">#7028</a> (whenever the current BOOST_ASSERT behavior is practical) is not a bug, but a question open for debate. </p> <p> For the current version of boots this bugfix is appropriate and should be applied. The documented behavior as well as the behavior of the long existed BOOST_ASSERT is not to be changed, so I see no need update the documentation. </p> <p> Anyway, my bug report is 10 months old, several boost releases got out since then, still with the bug, and nobody seems to care. So I guess it is Ok to close this ticket and do something once the decision on <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7028" title="#7028: Feature Requests: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is ... (reopened)">#7028</a> is made. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 14 Mar 2013 17:59:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6609#comment:5 https://svn.boost.org/trac10/ticket/6609#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicated <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7028" title="#7028: Feature Requests: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is ... (reopened)">#7028</a>. </p> Ticket