Removed usage of deprecated macros in Boost.LocalFunction

[SVN r81566]
This commit is contained in:
Marshall Clow
2012-11-26 18:04:22 +00:00
parent 4c8033c73e
commit 6d29941e50
42 changed files with 50 additions and 50 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "lambda functions required"
#else
+1 -1
View File
@@ -43,7 +43,7 @@
// PUBLIC //
// Arguments `void | var1, var2, ... | (var1) (var2) ...`.
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# define CONST_BLOCK(void_or_seq) \
CONST_BLOCK_(BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(void_or_seq))
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "requires lambda functions"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "lambda functions required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "lambda functions required"
#else
+3 -3
View File
@@ -64,7 +64,7 @@
BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_RETURN_REMOVE_FRONT( \
BOOST_PP_LIST_FIRST(results))
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
//[gcc_lambda_macro
# define GCC_LAMBDA_(binds, params, results) \
({ /* open statement expression (GCC extension only) */ \
@@ -108,7 +108,7 @@
// Same arguments as for local functions but respect to C++11 lambdas:
// const bind v is =v, bind& v is &v, void if no return specified, no = or &.
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# define GCC_LAMBDA(void_or_seq) \
GCC_LAMBDA_TUPLE_(GCC_LAMBDA_SPLIT_( \
BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(void_or_seq)))
@@ -118,7 +118,7 @@
BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(__VA_ARGS__)))
#endif
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# define GCC_LAMBDA_END \
GCC_LAMBDA_END_(BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER)
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "lambda functions required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_LAMBDAS
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "lambda functions required"
#else
+1 -1
View File
@@ -34,7 +34,7 @@ private:
// PUBLIC //
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# define SCOPE_EXIT(void_or_seq) \
void BOOST_LOCAL_FUNCTION(void_or_seq)
#else
+2 -2
View File
@@ -20,7 +20,7 @@
// PUBLIC //
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# define BOOST_LOCAL_FUNCTION_ID(id, declarations) \
BOOST_LOCAL_FUNCTION_AUX_DECL(id, 0 /* not within template */, \
BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
@@ -344,7 +344,7 @@ On C++11 compilers, there is no need to declare a local function lined because
this library will automatically use C++11 specific features to inline the local
function while always allowing to pass it as a template parameter.
This optimization is automatically enabled when the Boost.Config macro
<c>BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS</c> is not defined but it also be
<c>BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS</c> is not defined but it also be
forced using @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS}.
The local function name can also be qualified by prefixing it with the
+2 -2
View File
@@ -21,7 +21,7 @@
#endif
#ifndef BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS
# ifdef BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS
# ifdef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
# define BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS 0
# else
# define BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS 1
@@ -99,7 +99,7 @@ still allow to pass the local functions as template parameters.
It is recommended to leave this macro undefined.
In this case, the library will automatically define this macro to <c>0</c> if
the Boost.Config macro <c>BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS</c> is
the Boost.Config macro <c>BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS</c> is
defined for the specific compiler, and to <c>1</c> otherwise.
@See @RefSect{getting_started, Getting Started} section,
@@ -41,7 +41,7 @@
BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST_HANDLE_VOID_ \
)(is_void_macro, token)
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
#define BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST_(is_void_macro, seq) \
BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST_HANDLE_SEQ_(is_void_macro, seq)
@@ -49,7 +49,7 @@
#else // VARIADICS
// FUTURE: Replace this with BOOST_PP_VARIADIC_SIZE when and if
// BOOST_PP_VARIAIDCS detection will match !BOOST_NO_VARIADIC_MACROS (for now
// BOOST_PP_VARIAIDCS detection will match !BOOST_NO_CXX11_VARIADIC_MACROS (for now
// Boost.Preprocessor and Boost.Config disagree on detecting compiler variadic
// support while this VARIADIC_SIZE works on compilers not detected by PP).
#if BOOST_MSVC
@@ -90,7 +90,7 @@
// even if they support variadic macros. Therefore, always using void to
// represent is more portable.
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
// Expand `void | (a)(b)...` to pp-list `NIL | (a, (b, NIL))`.
#define BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(sign) \
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+2 -2
View File
@@ -6,9 +6,9 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#if !defined(BOOST_NO_AUTO_DECLARATIONS)
#if !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS)
# error "auto-declarations not allowed (using `auto` as storage classifier)"
#elif defined(BOOST_NO_VARIADIC_MACROS)
#elif defined(BOOST_NO_CXX11_VARIADIC_MACROS)
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifndef BOOST_NO_AUTO_DECLARATIONS
#ifndef BOOST_NO_CXX11_AUTO_DECLARATIONS
# error "auto-declarations not allowed (using `auto` as storage classifier)"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+2 -2
View File
@@ -13,8 +13,8 @@
// WARNING: This file must be included first in each compilation unit.
// Force no variadic macros but avoiding macro redefinition warning/error.
#ifndef BOOST_NO_VARIADIC_MACROS
# define BOOST_NO_VARIADIC_MACROS
#ifndef BOOST_NO_CXX11_VARIADIC_MACROS
# define BOOST_NO_CXX11_VARIADIC_MACROS
#endif
#endif // #include guard
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else
+1 -1
View File
@@ -6,7 +6,7 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_MACROS
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
# error "variadic macros required"
#else