Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63263 - in sandbox/SOC/2010/bit_masks: boost/integer boost/integer/details/bft lib/integer/test lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-23 15:11:31


Author: bbartman
Date: 2010-06-23 15:11:31 EDT (Wed, 23 Jun 2010)
New Revision: 63263
URL: http://svn.boost.org/trac/boost/changeset/63263

Log:
still working on macroing temaplate parameter expansion
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 1 +
   sandbox/SOC/2010/bit_masks/boost/integer/details/bft/template_expansion_macros.hpp | 7 +++++++
   sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 | 1 +
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp | 21 +++++++++++++++++++++
   4 files changed, 30 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp 2010-06-23 15:11:31 EDT (Wed, 23 Jun 2010)
@@ -6,6 +6,7 @@
 
 #ifndef BOOST_BITFIELD_TUPLE_HPP
 #define BOOST_BITFIELD_TUPLE_HPP
+#include <boost/integer/details/bft/template_expansion_macros.hpp>
 #include <boost/integer/details/bitfield_tuple_impl.hpp>
 #include <boost/bitfield/bitfield.hpp>
 #include <boost/integer/details/bft/name_lookup.hpp>

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/template_expansion_macros.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/template_expansion_macros.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/template_expansion_macros.hpp 2010-06-23 15:11:31 EDT (Wed, 23 Jun 2010)
@@ -10,6 +10,13 @@
 #ifndef BOOST_BITFIELD_TUPLE_TEMPLATE_EXPANSION_MACROS_HPP
 #define BOOST_BITFIELD_TUPLE_TEMPLATE_EXPANSION_MACROS_HPP
 
+#ifndef BOOST_BFT_PARAM_COUNT
+#define BOOST_BFT_PARAM_COUNT 10
+#endif
+
+#define BOOST_MAKE_BFT_TEMPLATE_PARAMS() \
+ BOOST_PP_ENUM(BOOST_BFT_PARAM_COUNT, BOOST_BFT_MAKE_PARAMS)
+
 /** Macro for generating template parameters
  * for a bitfield_tuple.
  */

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 2010-06-23 15:11:31 EDT (Wed, 23 Jun 2010)
@@ -41,5 +41,6 @@
         [ run bft_testing/fusion_integration_testing.cpp ]
         [ run bft_testing/flag_test.cpp ]
         [ run bft_testing/filler_test.cpp ]
+ [ run bft_testing/template_expansion_marco_test.cpp ]
     ;
 

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp 2010-06-23 15:11:31 EDT (Wed, 23 Jun 2010)
@@ -0,0 +1,21 @@
+// Copyright 2010 Brian Bartman.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+
+#include <boost/integer/bitfield_tuple.hpp>
+#include <boost/assert.hpp>
+
+
+using namespace boost;
+
+template <typename T0,BOOST_MAKE_BFT_TEMPLATE_PARAMS()>
+struct ham_bone { };
+
+int main() {
+
+ return 0;
+}
+
+


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