From 1cdb78c30a6cbfc77ea813f69181cdc6be1d52db Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Thu, 14 Mar 2013 17:46:52 +0000 Subject: [PATCH] Assert: take care of #7028. [SVN r83428] --- include/boost/assert.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/assert.hpp b/include/boost/assert.hpp index a233505..ed8294f 100644 --- a/include/boost/assert.hpp +++ b/include/boost/assert.hpp @@ -28,7 +28,7 @@ #undef BOOST_ASSERT -#if defined(BOOST_DISABLE_ASSERTS) +#if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG) # define BOOST_ASSERT(expr) ((void)0) @@ -89,9 +89,9 @@ namespace boost #endif namespace boost - { - namespace assertion - { + { + namespace assertion + { namespace detail { inline void assertion_failed_msg(char const * expr, char const * msg, char const * function,