Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70764 - branches/pplib/variadics/boost/preprocessor/tuple/detail
From: eldiener_at_[hidden]
Date: 2011-03-30 17:44:16


Author: eldiener
Date: 2011-03-30 17:44:15 EDT (Wed, 30 Mar 2011)
New Revision: 70764
URL: http://svn.boost.org/trac/boost/changeset/70764

Log:
Fix for vc++
Text files modified:
   branches/pplib/variadics/boost/preprocessor/tuple/detail/use_overload.hpp | 17 +++++++++++++++++
   1 files changed, 17 insertions(+), 0 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-03-30 17:44:15 EDT (Wed, 30 Mar 2011)
@@ -20,15 +20,32 @@
 #
 # /* BOOST_PP_TUPLE_DETAIL_USE_OVERLOAD */
 #
+# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
+# define BOOST_PP_TUPLE_DETAIL_USE_OVERLOAD(prefix,...) \
+ BOOST_PP_USE_OV_CAT(BOOST_PP_TUPLE_DETAIL_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)),BOOST_PP_EMPTY()) \
+ /**/
+#
+# else
+#
 # define BOOST_PP_TUPLE_DETAIL_USE_OVERLOAD(prefix,...) \
          BOOST_PP_TUPLE_DETAIL_APPLY_VAR(BOOST_PP_OVERLOAD(prefix, __VA_ARGS__),(__VA_ARGS__)) \
          /**/
 #
+# endif
+#
 #define BOOST_PP_TUPLE_DETAIL_APPLY_VAR_I(macro, args) \
   macro args \
 /**/
+#
 #define BOOST_PP_TUPLE_DETAIL_APPLY_VAR(macro, args) \
   BOOST_PP_TUPLE_DETAIL_APPLY_VAR_I(macro, args) \
 /**/
+#
+# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
+# define BOOST_PP_USE_OV_CAT(a, b) BOOST_PP_USE_OV_CAT_I(a, b)
+# define BOOST_PP_USE_OV_CAT_I(a, b) BOOST_PP_USE_OV_CAT_II(a ## b)
+# define BOOST_PP_USE_OV_CAT_II(res) res
+# endif
+#
 # endif // BOOST_PP_VARIADICS
 # endif // BOOST_PREPROCESSOR_TUPLE_USE_OVERLOAD_HPP


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