From 50a562867e72af1796f42b905e34116b837b215e Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Thu, 3 Jan 2013 14:55:24 +0000 Subject: [PATCH] Add BOOST_NOEXCEPT_OR_NOTHROW [SVN r82331] --- .../boost_config/boost_macro_reference.html | 123 +++++++++++++++++- doc/html/index.html | 2 +- doc/macro_reference.qbk | 7 +- include/boost/config/suffix.hpp | 2 + 4 files changed, 126 insertions(+), 8 deletions(-) diff --git a/doc/html/boost_config/boost_macro_reference.html b/doc/html/boost_config/boost_macro_reference.html index 9f013c0a..2551eaa3 100644 --- a/doc/html/boost_config/boost_macro_reference.html +++ b/doc/html/boost_config/boost_macro_reference.html @@ -2898,7 +2898,7 @@

- BOOST_NO_CXX11_STD_UNORDERD + BOOST_NO_CXX11_STD_UNORDERED

@@ -3063,6 +3063,7 @@

BOOST_NOEXCEPT
+BOOST_NOEXCEPT_OR_NOTHROW
 BOOST_NOEXCEPT_IF(Predicate)
 BOOST_NOEXCEPT_EXPR(Expression)
 
@@ -3071,7 +3072,7 @@

- If BOOST_NO_NOEXCEPT + If BOOST_NO_CXX11_NOEXCEPT is defined (i.e. C++03 compliant compilers) these macros are defined as:

@@ -3079,6 +3080,7 @@

#define BOOST_NOEXCEPT
+#define BOOST_NOEXCEPT_OR_NOTHROW throw()
 #define BOOST_NOEXCEPT_IF(Predicate)
 #define BOOST_NOEXCEPT_EXPR(Expression) false
 
@@ -3086,7 +3088,7 @@

- If BOOST_NO_NOEXCEPT + If BOOST_NO_CXX11_NOEXCEPT is not defined (i.e. C++11 compliant compilers) they are defined as:

@@ -3094,6 +3096,7 @@

#define BOOST_NOEXCEPT noexcept
+#define BOOST_NOEXCEPT_OR_NOTHROW noexcept
 #define BOOST_NOEXCEPT_IF(Predicate) noexcept((Predicate))
 #define BOOST_NOEXCEPT_EXPR(Expression) noexcept((Expression))
 
@@ -4610,12 +4613,12 @@

- BOOST_NO_STD_UNORDERD + BOOST_NO_STD_UNORDERED

- BOOST_NO_CXX11_STD_UNORDERD + BOOST_NO_CXX11_STD_UNORDERED

@@ -4721,6 +4724,116 @@ + + + + + + + + + + + + +

+ BOOST_HAS_STATIC_ASSERT +

+ + +

+ BOOST_NO_CXX11_STATIC_ASSERT + (negated) +

+ + +

+ Boost 1.53 +

+ + + + + + +

+ BOOST_HAS_VARIADIC_TMPL +

+ + +

+ BOOST_NO_CXX11_VARIADIC_TEMPLATES + (negated) +

+ + +

+ Boost 1.53 +

+ + + + + + +

+ BOOST_HAS_RVALUE_REFS +

+ + +

+ BOOST_NO_CXX11_RVALUE_REFERENCES + (negated) +

+ + +

+ Boost 1.53 +

+ + + + + + +

+ BOOST_HAS_CHAR_16_T +

+ + +

+ BOOST_NO_CXX11_CHAR_16_T + (negated) +

+ + +

+ Boost 1.53 +

+ + + + + + +

+ BOOST_HAS_CHAR_32_T +

+ + +

+ BOOST_NO_CXX11_CHAR_32_T + (negated) +

+ + +

+ Boost 1.53 +

+ + + + diff --git a/doc/html/index.html b/doc/html/index.html index 90f9ad86..9f42997b 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -951,7 +951,7 @@ - +

Last revised: October 25, 2012 at 12:28:15 GMT

Last revised: January 03, 2013 at 13:01:40 GMT


diff --git a/doc/macro_reference.qbk b/doc/macro_reference.qbk index 0435acc2..77971e57 100644 --- a/doc/macro_reference.qbk +++ b/doc/macro_reference.qbk @@ -700,22 +700,25 @@ with: [[ `` BOOST_NOEXCEPT + BOOST_NOEXCEPT_OR_NOTHROW BOOST_NOEXCEPT_IF(Predicate) BOOST_NOEXCEPT_EXPR(Expression) `` ][ -If `BOOST_NO_NOEXCEPT` is defined (i.e. C++03 compliant compilers) these macros are defined as: +If `BOOST_NO_CXX11_NOEXCEPT` is defined (i.e. C++03 compliant compilers) these macros are defined as: [: `` #define BOOST_NOEXCEPT + #define BOOST_NOEXCEPT_OR_NOTHROW throw() #define BOOST_NOEXCEPT_IF(Predicate) #define BOOST_NOEXCEPT_EXPR(Expression) false `` ] -If `BOOST_NO_NOEXCEPT` is not defined (i.e. C++11 compliant compilers) they are defined as: +If `BOOST_NO_CXX11_NOEXCEPT` is not defined (i.e. C++11 compliant compilers) they are defined as: [: `` #define BOOST_NOEXCEPT noexcept + #define BOOST_NOEXCEPT_OR_NOTHROW noexcept #define BOOST_NOEXCEPT_IF(Predicate) noexcept((Predicate)) #define BOOST_NOEXCEPT_EXPR(Expression) noexcept((Expression)) `` diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 8ee88d90..4dc27fba 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -874,10 +874,12 @@ namespace std{ using ::type_info; } // #ifdef BOOST_NO_CXX11_NOEXCEPT # define BOOST_NOEXCEPT +# define BOOST_NOEXCEPT_OR_NOTHROW throw() # define BOOST_NOEXCEPT_IF(Predicate) # define BOOST_NOEXCEPT_EXPR(Expression) false #else # define BOOST_NOEXCEPT noexcept +# define BOOST_NOEXCEPT_OR_NOTHROW noexcept # define BOOST_NOEXCEPT_IF(Predicate) noexcept((Predicate)) # define BOOST_NOEXCEPT_EXPR(Expression) noexcept((Expression)) #endif