Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70641 - in branches/pplib/variadics/boost/preprocessor: config tuple variadic
From: eldiener_at_[hidden]
Date: 2011-03-27 14:04:40


Author: eldiener
Date: 2011-03-27 14:04:38 EDT (Sun, 27 Mar 2011)
New Revision: 70641
URL: http://svn.boost.org/trac/boost/changeset/70641

Log:
Updated headers
Text files modified:
   branches/pplib/variadics/boost/preprocessor/config/variadics.hpp | 7 ++++++-
   branches/pplib/variadics/boost/preprocessor/tuple/enum.hpp | 11 ++++-------
   branches/pplib/variadics/boost/preprocessor/variadic/elem.hpp | 2 +-
   3 files changed, 11 insertions(+), 9 deletions(-)

Modified: branches/pplib/variadics/boost/preprocessor/config/variadics.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/config/variadics.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/config/variadics.hpp 2011-03-27 14:04:38 EDT (Sun, 27 Mar 2011)
@@ -12,7 +12,6 @@
 # ifndef BOOST_PREPROCESSOR_CONFIG_VARIADICS_HPP
 # define BOOST_PREPROCESSOR_CONFIG_VARIADICS_HPP
 #
-# define BOOST_PP_VARIADICS 1
 # if defined(BOOST_PP_NO_VARIADICS)
 /* This macro is purely for testing purposes so that we can
    test Boost PP without variadic macro support even on
@@ -145,6 +144,10 @@
 # define BOOST_PP_VARIADICS 0
 #endif
 #
+#if !defined(BOOST_PP_VARIADICS)
+#define BOOST_PP_VARIADICS 1
+#endif
+#
 # else // !1
 /* This is the ideal code, but will not work until Boost Config
    works with C compilers or C++ compilers in C mode. I will be
@@ -154,6 +157,8 @@
 #
 # if defined(BOOST_NO_VARIADIC_MACROS)
 # define BOOST_PP_VARIADICS 0
+# else
+# define BOOST_PP_VARIADICS 1
 # endif // !BOOST_NO_VARIADIC_MACROS
 #
 # endif // 1

Modified: branches/pplib/variadics/boost/preprocessor/tuple/enum.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/tuple/enum.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/tuple/enum.hpp 2011-03-27 14:04:38 EDT (Sun, 27 Mar 2011)
@@ -16,7 +16,7 @@
 #
 #if BOOST_PP_VARIADICS
 #
-# include <boost/preprocessor/facilties/overload.hpp>
+# include <boost/preprocessor/facilities/overload.hpp>
 #
 # /* BOOST_PP_TUPLE_ENUM */
 #
@@ -29,12 +29,9 @@
 #define BOOST_PP_TUPLE_ENUM_2(size, tuple) \
   BOOST_PP_TUPLE_ENUM_1(tuple) \
 /**/
-#define BOOST_PP_TUPLE_DETAIL_REMOVE_TUPLE_PARENS(...) \
- __VA_ARGS__ \
-/**/
-#define BOOST_PP_TUPLE_DETAIL_ENUM(tuple) \
- BOOST_PP_TUPLE_DETAIL_REMOVE_TUPLE_PARENS tuple \
-/**/
+#define BOOST_PP_TUPLE_DETAIL_REMOVE_TUPLE_PARENS(...) __VA_ARGS__
+#define BOOST_PP_TUPLE_DETAIL_ENUM(tuple) BOOST_PP_TUPLE_DETAIL_REMOVE_TUPLE_PARENS tuple
+#
 #else
 #
 #include <boost/preprocessor/tuple/rem.hpp>

Modified: branches/pplib/variadics/boost/preprocessor/variadic/elem.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/variadic/elem.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/variadic/elem.hpp 2011-03-27 14:04:38 EDT (Sun, 27 Mar 2011)
@@ -19,7 +19,7 @@
 #include "detail/elem.hpp"
 #
 #define BOOST_PP_VARIADIC_ELEM(n,...) \
- BOOST_PP_VARIADIC_DETAIL_ELEM(n,__VA_ARGS__) \
+ BOOST_PP_VARIADIC_DETAIL_DATA_ELEM(n,__VA_ARGS__) \
 /**/
 #
 #endif // BOOST_PP_VARIADICS


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