Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62333 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-05-30 15:13:12


Author: bbartman
Date: 2010-05-30 15:13:11 EDT (Sun, 30 May 2010)
New Revision: 62333
URL: http://svn.boost.org/trac/boost/changeset/62333

Log:
working on making bit_mask_group work with the mpl
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bit_mask_group.hpp | 44 ++++++++++++++++++++++++++++++----------
   sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp | 2
   sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp | 2
   3 files changed, 35 insertions(+), 13 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bit_mask_group.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bit_mask_group.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bit_mask_group.hpp 2010-05-30 15:13:11 EDT (Sun, 30 May 2010)
@@ -9,24 +9,46 @@
 
 
 #include <boost/integer/compound_mask.hpp>
-// #include <boost/mpl/list.hpp>
+// #include <boost/mpl/vector.hpp>
+#include <boost/mpl/if.hpp>
+
 
 
 
 namespace boost {
 
+// TODO: move this into a sperate file
+namespace details {
+struct null_mask { };
+typedef null_mask unused_parameter;
+
+template <typename T, typename TypeVector>
+struct add_to_vector{
+ template <typename NewT, typename NewTypeVector>
+ struct rebind {
+ };
+};
+}
 template < typename Mask0,
- typename Mask1 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask2 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask3 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask4 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask5 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask6 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask7 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask8 = integral_mask< typename Mask0::value_type, 0 >,
- typename Mask9 = integral_mask< typename Mask0::value_type, 0 >
+ typename Mask1 = details::unused_parameter,
+ typename Mask2 = details::unused_parameter,
+ typename Mask3 = details::unused_parameter,
+ typename Mask4 = details::unused_parameter,
+ typename Mask5 = details::unused_parameter,
+ typename Mask6 = details::unused_parameter,
+ typename Mask7 = details::unused_parameter,
+ typename Mask8 = details::unused_parameter,
+ typename Mask9 = details::unused_parameter
>
-struct t;
+struct bit_mask_group
+ // if they are the same then do nothing? if they arn't the same
+ // that means that I located a mask or something to be part of
+ // the mask group.
+{
+ // typedef typename mpl::if_<
+ // is_same<Mask1,typename details::unused_parameter>,
+ // Mask1,
+};
 
 
 } // namespace

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp 2010-05-30 15:13:11 EDT (Sun, 30 May 2010)
@@ -5,8 +5,8 @@
 
 
 
-#include "test_type_list.hpp"
 #include <boost/integer/high_low_bits.hpp>
+#include "test_type_list.hpp"
 
 using namespace boost;
 

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp 2010-05-30 15:13:11 EDT (Sun, 30 May 2010)
@@ -16,7 +16,7 @@
 #define BOOST_BITS_AND_INTS_TESTING_TYPE_LIST_HPP
 
 // standard library includes
-#include <cstddef>
+// #include <cstddef>
 
 
 // boost includes


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