Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73776 - trunk/boost/preprocessor/variadic
From: eldiener_at_[hidden]
Date: 2011-08-15 11:58:26


Author: eldiener
Date: 2011-08-15 11:58:25 EDT (Mon, 15 Aug 2011)
New Revision: 73776
URL: http://svn.boost.org/trac/boost/changeset/73776

Log:
Delay of BOOST_PP_VARIADIC_ELEM fixes problem when variadic data must be generated.
Text files modified:
   trunk/boost/preprocessor/variadic/elem.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/preprocessor/variadic/elem.hpp
==============================================================================
--- trunk/boost/preprocessor/variadic/elem.hpp (original)
+++ trunk/boost/preprocessor/variadic/elem.hpp 2011-08-15 11:58:25 EDT (Mon, 15 Aug 2011)
@@ -20,7 +20,8 @@
 #
 # if BOOST_PP_VARIADICS
 # if BOOST_PP_VARIADICS_MSVC
-# define BOOST_PP_VARIADIC_ELEM(n, ...) BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_VARIADIC_ELEM_, n)(__VA_ARGS__,),)
+# define BOOST_PP_VARIADIC_ELEM(n, ...) BOOST_PP_VARIADIC_ELEM_I(n,__VA_ARGS__)
+# define BOOST_PP_VARIADIC_ELEM_I(n, ...) BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_VARIADIC_ELEM_, n)(__VA_ARGS__,),)
 # else
 # define BOOST_PP_VARIADIC_ELEM(n, ...) BOOST_PP_CAT(BOOST_PP_VARIADIC_ELEM_, n)(__VA_ARGS__,)
 # endif


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