Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82098 - in trunk: libs/config/doc tools/inspect
From: marshall_at_[hidden]
Date: 2012-12-19 10:28:25


Author: marshall
Date: 2012-12-19 10:28:24 EST (Wed, 19 Dec 2012)
New Revision: 82098
URL: http://svn.boost.org/trac/boost/changeset/82098

Log:
Deprecate config macros BOOST_HAS_STATIC_ASSERT, BOOST_HAS_VARIADIC_TMPL, BOOST_HAS_RVALUE_REFS, BOOST_HAS_CHAR_16_T and BOOST_HAS_CHAR_32_T
Text files modified:
   trunk/libs/config/doc/macro_reference.qbk | 9 ++++++---
   trunk/tools/inspect/deprecated_macro_check.cpp | 17 +++++++++++++++++
   2 files changed, 23 insertions(+), 3 deletions(-)

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-19 10:28:24 EST (Wed, 19 Dec 2012)
@@ -409,9 +409,6 @@
 [[`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`.
 ]]
@@ -1057,6 +1054,12 @@
 [[`BOOST_NO_VARIADIC_TEMPLATES`][`BOOST_NO_CXX11_VARIADIC_TEMPLATES`][Boost 1.51][]]
 [[`BOOST_NO_VARIADIC_MACROS`][`BOOST_NO_CXX11_VARIADIC_MACROS`][Boost 1.51][]]
 [[`BOOST_NO_NUMERIC_LIMITS_LOWEST`][`BOOST_NO_CXX11_NUMERIC_LIMITS`][Boost 1.51][]]
+[[][][][]]
+[[`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][]]
 ]
 
 [endsect]

Modified: trunk/tools/inspect/deprecated_macro_check.cpp
==============================================================================
--- trunk/tools/inspect/deprecated_macro_check.cpp (original)
+++ trunk/tools/inspect/deprecated_macro_check.cpp 2012-12-19 10:28:24 EST (Wed, 19 Dec 2012)
@@ -72,6 +72,15 @@
         "BOOST_NO_NUMERIC_LIMITS_LOWEST",
     NULL
     };
+
+ const char * boost153macros [] = {
+ "BOOST_HAS_STATIC_ASSERT",
+ "BOOST_HAS_RVALUE_REFS",
+ "BOOST_HAS_VARIADIC_TMPL",
+ "BOOST_HAS_CHAR_16_T",
+ "BOOST_HAS_CHAR_32_T",
+ NULL
+ };
 } // unnamed namespace
 
 
@@ -120,6 +129,14 @@
           }
       }
 
+ for ( ptr = boost153macros; *ptr != NULL; ++ptr )
+ {
+ if ( contents.find( *ptr ) != string::npos ) {
+ ++errors;
+ error( library_name, full_path, string ( "Boost macro deprecated in 1.53: " ) + *ptr );
+ }
+ }
+
       if(errors > 0)
         ++m_files_with_errors;
     }


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