Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72717 - branches/pplib/v2/boost/preprocessor/variadic
From: eldiener_at_[hidden]
Date: 2011-06-22 09:14:14


Author: eldiener
Date: 2011-06-22 09:14:13 EDT (Wed, 22 Jun 2011)
New Revision: 72717
URL: http://svn.boost.org/trac/boost/changeset/72717

Log:
Changed to work with VC++.
Text files modified:
   branches/pplib/v2/boost/preprocessor/variadic/to_array.hpp | 9 ++++++++-
   1 files changed, 8 insertions(+), 1 deletions(-)

Modified: branches/pplib/v2/boost/preprocessor/variadic/to_array.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/variadic/to_array.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/variadic/to_array.hpp 2011-06-22 09:14:13 EDT (Wed, 22 Jun 2011)
@@ -15,11 +15,18 @@
 #
 # include <boost/preprocessor/config/config.hpp>
 # include <boost/preprocessor/tuple/to_array.hpp>
+# if BOOST_PP_VARIADICS_MSVC
+# include <boost/preprocessor/variadic/size.hpp>
+# endif
 #
 # /* BOOST_PP_VARIADIC_TO_ARRAY */
 #
 # if BOOST_PP_VARIADICS
-# define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY((__VA_ARGS__))
+# if BOOST_PP_VARIADICS_MSVC
+# define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY_2(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),(__VA_ARGS__))
+# else
+# define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY((__VA_ARGS__))
+# endif
 # endif
 #
 # 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