Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71288 - branches/pplib/variadics/boost/preprocessor/tuple/detail
From: eldiener_at_[hidden]
Date: 2011-04-15 11:12:54


Author: eldiener
Date: 2011-04-15 11:12:53 EDT (Fri, 15 Apr 2011)
New Revision: 71288
URL: http://svn.boost.org/trac/boost/changeset/71288

Log:
Simplify functionality.
Text files modified:
   branches/pplib/variadics/boost/preprocessor/tuple/detail/use_overload.hpp | 72 ++++++---------------------------------
   1 files changed, 12 insertions(+), 60 deletions(-)

Modified: branches/pplib/variadics/boost/preprocessor/tuple/detail/use_overload.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/tuple/detail/use_overload.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/tuple/detail/use_overload.hpp 2011-04-15 11:12:53 EDT (Fri, 15 Apr 2011)
@@ -22,25 +22,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_ELEM_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_ELEM_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_ELEM_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_ELEM_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_ELEM_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_ELEM_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_ELEM_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_ELEM_USE_OV_CAT_II(a ## b)
@@ -51,25 +43,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_REM_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_REM_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_REM_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_REM_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_REM_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_REM_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_REM_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_REM_USE_OV_CAT_II(a ## b)
@@ -80,25 +64,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_REVERSE_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_REVERSE_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_REVERSE_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_REVERSE_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_REVERSE_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_REVERSE_USE_OV_CAT_II(a ## b)
@@ -109,25 +85,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_TO_ARRAY_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_ARRAY_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_TO_ARRAY_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_TO_ARRAY_USE_OV_CAT_II(a ## b)
@@ -138,25 +106,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_TO_LIST_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_LIST_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_TO_LIST_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_TO_LIST_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_TO_LIST_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_TO_LIST_USE_OV_CAT_II(a ## b)
@@ -167,25 +127,17 @@
 #
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_TO_SEQ_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__),BOOST_PP_EMPTY()) \
          /**/
 #
 # else
 #
 # define BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OVERLOAD(prefix,...) \
- BOOST_PP_TUPLE_DETAIL_TO_SEQ_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
+ BOOST_PP_OVERLOAD(prefix, __VA_ARGS__)(__VA_ARGS__) \
          /**/
 #
 # endif
 #
-#define BOOST_PP_TUPLE_DETAIL_TO_SEQ_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#
-#define BOOST_PP_TUPLE_DETAIL_TO_SEQ_APPLY_VAR(macro, args) \
- BOOST_PP_TUPLE_DETAIL_TO_SEQ_APPLY_VAR_I(macro, args) \
-/**/
-#
 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
 # define BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT(a, b) BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT_I(a, b)
 # define BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT_I(a, b) BOOST_PP_TUPLE_DETAIL_TO_SEQ_USE_OV_CAT_II(a ## b)


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