|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63246 - in sandbox/SOC/2010/bit_masks: boost/integer/details/bft lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-22 15:21:54
Author: bbartman
Date: 2010-06-22 15:21:53 EDT (Tue, 22 Jun 2010)
New Revision: 63246
URL: http://svn.boost.org/trac/boost/changeset/63246
Log:
adding header file and testing file for creating macros for generating additional parameters for the bitfield tuple
Added:
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp (contents, props changed)
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/details/bft/template_expansion_macros.hpp | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
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-22 15:21:53 EDT (Tue, 22 Jun 2010)
@@ -0,0 +1,20 @@
+// 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/preprocessor/repetition/enum.hpp>
+#include <boost/preprocessor/arithmetic/add.hpp>
+
+#ifndef BOOST_BITFIELD_TUPLE_TEMPLATE_EXPANSION_MACROS_HPP
+#define BOOST_BITFIELD_TUPLE_TEMPLATE_EXPANSION_MACROS_HPP
+
+/** Macro for generating template parameters
+ * for a bitfield_tuple.
+ */
+#define BOOST_BFT_MAKE_PARAMS(Z, N, DATA) \
+ typename T##( BOOST_PP_ADD(N,1) ) = mpl::void_
+
+
+#endif
Added: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp
==============================================================================
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