Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63236 - in sandbox/SOC/2010/bit_masks: boost/integer boost/integer/details lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-06-22 10:44:05


Author: bbartman
Date: 2010-06-22 10:44:04 EDT (Tue, 22 Jun 2010)
New Revision: 63236
URL: http://svn.boost.org/trac/boost/changeset/63236

Log:
removed compile failure testes completely updated test suite and removed preconditions from the base class of bitfield_tuple

Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 5 +----
   sandbox/SOC/2010/bit_masks/boost/integer/details/bitfield_tuple_impl.hpp | 13 +------------
   sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 | 2 --
   3 files changed, 2 insertions(+), 18 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-22 10:44:04 EDT (Tue, 22 Jun 2010)
@@ -242,11 +242,8 @@
  *
  * 5) The user must specify a storage type.
  *
- * 6) The storage type must be a POD type.
- *
- * 7) The storage type can not be an array.
  *
- * 8) The total width of the sum of all bit fields must not exceed the bit
+ * 6) The total width of the sum of all bit fields must not exceed the bit
  * width of the storage type.
  *
  *

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bitfield_tuple_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bitfield_tuple_impl.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bitfield_tuple_impl.hpp 2010-06-22 10:44:04 EDT (Tue, 22 Jun 2010)
@@ -65,11 +65,6 @@
  * deduce the ammount of storage space, and set the storage policy to
  * that.
  *
- * 2) The storage type must be a POD type.
- * (This may be changed to possibly allow for array types of PODs.)
- * Enforced, This may be best suited to being part of the unpacking
- * of the arguments so that it can be caught earlier then inside the
- * base class.
  *
  * 3) The bitfields specified must not exceed the bitwidth of the storage type.
  * Enforced. Not going any where, but may be redefined or altered based
@@ -113,13 +108,7 @@
     ));
 
 
- // Precondition: storage_type must not be an array type.
- // I always forget if the is_pod will match array types like int [3] or not.
- BOOST_STATIC_ASSERT(( !is_array<storage_type>::value ));
-
- // precondition: the storage type must be a pod type (for now).
- // NOTE: this may become a documented requirement only.
- BOOST_STATIC_ASSERT(( is_pod<storage_type>::value ));
+
 
     // Precondition: the offet at the end of everything must be the
     // the same as or less then the bit_width of the storage type.

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-22 10:44:04 EDT (Tue, 22 Jun 2010)
@@ -28,9 +28,7 @@
         [ compile-fail bft_testing/compile_fail/member_precond_width_zero.cpp ]
         [ compile-fail bft_testing/compile_fail/member_width_to_large.cpp ]
         [ compile-fail bft_testing/compile_fail/bft_no_storage_type.cpp ]
- [ compile-fail bft_testing/compile_fail/non_pod_storage_type.cpp ]
         [ compile-fail bft_testing/compile_fail/bft_storage_width_acceded.cpp ]
- [ compile-fail bft_testing/compile_fail/no_array_types.cpp ]
         [ compile-fail bft_testing/compile_fail/set_storage_more_then_once.cpp ]
         [ compile-fail bft_testing/compile_fail/one_name_two_members.cpp ]
         [ compile bft_testing/compile_pass/bft_member_max_out.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