|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63876 - sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9
From: bbartmanboost_at_[hidden]
Date: 2010-07-11 10:57:24
Author: bbartman
Date: 2010-07-11 10:57:23 EDT (Sun, 11 Jul 2010)
New Revision: 63876
URL: http://svn.boost.org/trac/boost/changeset/63876
Log:
working on creating a macro to automatically generate overloads
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp 2010-07-11 10:57:23 EDT (Sun, 11 Jul 2010)
@@ -81,16 +81,25 @@
BOOST_BFT_NOTHING )
-#define BOOST_MAKE_BFT_FUNCTION(N) \
+#define BOOST_MAKE_BFT_FUNCTION(z, N, data) \
template <typename BitfieldTuple, BOOST_MAKE_BFT_TEMPLATE_PARAMETERS(N)> \
BitfieldTuple make_bitfield_tuple(BOOST_MAKE_BFT_FUNCTION_PARAMETERS(N)){ \
BitfieldTuple bft; \
BOOST_MAKE_BFT_GENERATE_ASSIGNMENT_CALLS(N); \
return bft; \
}
+
+#define BOOST_MAKE_BFT_OVERLOADS() \
+ BOOST_PP_REPEAT_FROM_TO( \
+ 1,\
+ BOOST_BFT_PARAM_COUNT, \
+ BOOST_MAKE_BFT_FUNCTION,\
+ BOOST_BFT_NOTHING )
+
}}
-BOOST_MAKE_BFT_FUNCTION(1);
+BOOST_MAKE_BFT_OVERLOADS();
+/*
template <typename BitfieldTuple,BOOST_MAKE_BFT_TEMPLATE_PARAMETERS(2)>
BitfieldTuple make_bitfield_tuple(BOOST_MAKE_BFT_FUNCTION_PARAMETERS(2)) {
@@ -154,7 +163,7 @@
return bft;
}
-
+*/
} // end boost::detail::msvc_fixes
#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