Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71078 - branches/pplib/variadics/boost/preprocessor/facilities
From: eldiener_at_[hidden]
Date: 2011-04-07 09:19:15


Author: eldiener
Date: 2011-04-07 09:19:14 EDT (Thu, 07 Apr 2011)
New Revision: 71078
URL: http://svn.boost.org/trac/boost/changeset/71078

Log:
Removed extraneous code and went back to precious implementation.
Text files modified:
   branches/pplib/variadics/boost/preprocessor/facilities/overload.hpp | 41 +--------------------------------------
   1 files changed, 2 insertions(+), 39 deletions(-)

Modified: branches/pplib/variadics/boost/preprocessor/facilities/overload.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/facilities/overload.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/facilities/overload.hpp 2011-04-07 09:19:14 EDT (Thu, 07 Apr 2011)
@@ -18,49 +18,12 @@
 #if BOOST_PP_VARIADICS
 #
 # include <boost/preprocessor/config/config.hpp>
-#
-# /* BOOST_PP_OVERLOAD detail macros */
-#
-#define BOOST_PP_OV_DETAIL_APPLY_VAR_I(macro, args) \
- macro args \
-/**/
-#define BOOST_PP_OV_DETAIL_APPLY_VAR(macro, args) \
- BOOST_PP_OV_DETAIL_APPLY_VAR_I(macro, args) \
-/**/
-#
-#define BOOST_PP_OV_DETAIL_ARG_N( \
- A1,A2,A3,A4,A5,A6,A7,A8,A9,A10, \
- A11,A12,A13,A14,A15,A16,A17,A18,A19,A20, \
- A21,A22,A23,A24,N,...) N \
-/**/
-#define BOOST_PP_OV_DETAIL_RSEQ_N() \
- 24,23,22,21,20, \
- 19,18,17,16,15,14,13,12,11,10, \
- 9,8,7,6,5,4,3,2,1,0 \
-/**/
-#
-# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
-# define BOOST_PP_OV_DETAIL_CAT(a, b) BOOST_PP_OV_DETAIL_CAT_I(a, b)
-# define BOOST_PP_OV_DETAIL_CAT_I(a, b) BOOST_PP_OV_DETAIL_CAT_II(a ## b)
-# define BOOST_PP_OV_DETAIL_CAT_II(res) res
-# include <boost/preprocessor/facilities/empty.hpp>
-#define BOOST_PP_OV_DETAIL_SIZE(...) \
- BOOST_PP_OV_DETAIL_CAT(BOOST_PP_OV_DETAIL_APPLY_VAR(BOOST_PP_OV_DETAIL_ARG_N, (__VA_ARGS__, BOOST_PP_OV_DETAIL_RSEQ_N())),BOOST_PP_EMPTY()) \
-/**/
-#else
-#define BOOST_PP_OV_DETAIL_SIZE(...) \
- BOOST_PP_OV_DETAIL_APPLY_VAR(BOOST_PP_OV_DETAIL_ARG_N, (__VA_ARGS__, BOOST_PP_OV_DETAIL_RSEQ_N())) \
-/**/
-#endif
-#
-#define BOOST_PP_OV_SIZE(...) \
- BOOST_PP_OV_DETAIL_SIZE(__VA_ARGS__) \
-/**/
+# include <boost/preprocessor/variadic/size.hpp>
 #
 # /* BOOST_PP_OVERLOAD */
 #
 #define BOOST_PP_OVERLOAD(prefix, ...) \
- BOOST_PP_OV_CAT(prefix, BOOST_PP_OV_SIZE(__VA_ARGS__)) \
+ BOOST_PP_OV_CAT(prefix, BOOST_PP_VARIADIC_SIZE(__VA_ARGS__)) \
 /**/
 #
 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()


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