Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81878 - in trunk: boost/config libs/config/doc
From: marshall_at_[hidden]
Date: 2012-12-12 11:58:27


Author: marshall
Date: 2012-12-12 11:58:26 EST (Wed, 12 Dec 2012)
New Revision: 81878
URL: http://svn.boost.org/trac/boost/changeset/81878

Log:
Updated the Docs for BOOST_HAS_RVALUE_REFS (thanks Peter!), minor tweaks to suffix.hpp
Text files modified:
   trunk/boost/config/suffix.hpp | 16 ++++++++--------
   trunk/libs/config/doc/macro_reference.qbk | 3 +++
   2 files changed, 11 insertions(+), 8 deletions(-)

Modified: trunk/boost/config/suffix.hpp
==============================================================================
--- trunk/boost/config/suffix.hpp (original)
+++ trunk/boost/config/suffix.hpp 2012-12-12 11:58:26 EST (Wed, 12 Dec 2012)
@@ -872,7 +872,7 @@
 // Helper macros BOOST_NOEXCEPT, BOOST_NOEXCEPT_IF, BOOST_NOEXCEPT_EXPR
 // These aid the transition to C++11 while still supporting C++03 compilers
 //
-#ifdef BOOST_NO_NOEXCEPT
+#ifdef BOOST_NO_CXX11_NOEXCEPT
 # define BOOST_NOEXCEPT
 # define BOOST_NOEXCEPT_IF(Predicate)
 # define BOOST_NOEXCEPT_EXPR(Expression) false
@@ -883,16 +883,16 @@
 #endif
 
 //
-// Normalize BOOST_NO_STATIC_ASSERT and (depricated) BOOST_HAS_STATIC_ASSERT:
+// Normalize BOOST_NO_CXX11_STATIC_ASSERT and (deprecated) BOOST_HAS_STATIC_ASSERT:
 //
-#if !defined(BOOST_NO_STATIC_ASSERT) && !defined(BOOST_HAS_STATIC_ASSERT)
+#if !defined(BOOST_NO_CXX11_STATIC_ASSERT) && !defined(BOOST_HAS_STATIC_ASSERT)
 # define BOOST_HAS_STATIC_ASSERT
 #endif
 
 //
 // constexpr workarounds
 //
-#if defined(BOOST_NO_CONSTEXPR)
+#if defined(BOOST_NO_CXX11_CONSTEXPR)
 #define BOOST_CONSTEXPR
 #define BOOST_CONSTEXPR_OR_CONST const
 #else
@@ -903,16 +903,16 @@
 #define BOOST_STATIC_CONSTEXPR static BOOST_CONSTEXPR_OR_CONST
 
 //
-// Set BOOST_HAS_RVALUE_REFS when BOOST_NO_RVALUE_REFERENCES is not defined
+// Set BOOST_HAS_RVALUE_REFS when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined
 //
-#if !defined(BOOST_NO_RVALUE_REFERENCES) && !defined(BOOST_HAS_RVALUE_REFS)
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_HAS_RVALUE_REFS)
 #define BOOST_HAS_RVALUE_REFS
 #endif
 
 //
-// Set BOOST_HAS_VARIADIC_TMPL when BOOST_NO_VARIADIC_TEMPLATES is not defined
+// Set BOOST_HAS_VARIADIC_TMPL when BOOST_NO_CXX11_VARIADIC_TEMPLATES is not defined
 //
-#if !defined(BOOST_NO_VARIADIC_TEMPLATES) && !defined(BOOST_HAS_VARIADIC_TMPL)
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_HAS_VARIADIC_TMPL)
 #define BOOST_HAS_VARIADIC_TMPL
 #endif
 

Modified: trunk/libs/config/doc/macro_reference.qbk
==============================================================================
--- trunk/libs/config/doc/macro_reference.qbk (original)
+++ trunk/libs/config/doc/macro_reference.qbk 2012-12-12 11:58:26 EST (Wed, 12 Dec 2012)
@@ -409,6 +409,9 @@
 [[`BOOST_HAS_PTHREADS`][Platform][
 The platform support POSIX style threads.
 ]]
+[[`BOOST_HAS_RVALUE_REFS`][Compiler][
+The compiler supports C++11 rvalue references.
+]]
 [[`BOOST_HAS_SCHED_YIELD`][Platform][
 The platform has the POSIX API `sched_yield`.
 ]]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk