Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62734 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test lib/integer/test/bft_testing/compile_fail
From: bbartmanboost_at_[hidden]
Date: 2010-06-10 09:20:17


Author: bbartman
Date: 2010-06-10 09:20:15 EDT (Thu, 10 Jun 2010)
New Revision: 62734
URL: http://svn.boost.org/trac/boost/changeset/62734

Log:
fixed a bug in my test which was causing a compile-fail test to compile and because of that fail
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 5 -----
   sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 | 1 +
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/bft_no_storage_type.cpp | 8 +++++---
   sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_tuple_test.cpp | 1 +
   4 files changed, 7 insertions(+), 8 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-10 09:20:15 EDT (Thu, 10 Jun 2010)
@@ -23,11 +23,6 @@
 namespace boost {
 namespace details {
 
-
-
-
-
-
 /** This is the type which sits inside the mpl vector type.
  * This has all information for constructing a bitfield.
  */

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-10 09:20:15 EDT (Thu, 10 Jun 2010)
@@ -27,5 +27,6 @@
         [ run bit_mask_group_test.cpp ]
         [ run bitfield_tuple_test.cpp ]
         [ compile-fail bft_testing/compile_fail/member_precond_width_zero.cpp ]
+ [ compile-fail bft_testing/compile_fail/bft_no_storage_type.cpp ]
     ;
 

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/bft_no_storage_type.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/bft_no_storage_type.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/bft_no_storage_type.cpp 2010-06-10 09:20:15 EDT (Thu, 10 Jun 2010)
@@ -4,14 +4,16 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 
 
-#include <boost/integer/details/member.hpp>
+#include <boost/integer/bitfield_tuple.hpp>
 
 using namespace boost;
-
+struct red;
 // Fails because no storage is specified.
-
 typedef bitfield_tuple< member<int,red,3> > bft;
 
+
 int main() {
+ bft(); // don't for get in order make sure that the template works you
+ // either need to construct it or ask for a type in it!
     return 0;
 }

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_tuple_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_tuple_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_tuple_test.cpp 2010-06-10 09:20:15 EDT (Thu, 10 Jun 2010)
@@ -127,6 +127,7 @@
         BOOST_ASSERT(( sap_test_4.get_data() == 0));
 
     }
+
     // testing for parsing of aruments passed into template parameters.
     {
     


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