Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64818 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test/bitfield_vector_testing
From: bbartmanboost_at_[hidden]
Date: 2010-08-15 10:24:49


Author: bbartman
Date: 2010-08-15 10:24:43 EDT (Sun, 15 Aug 2010)
New Revision: 64818
URL: http://svn.boost.org/trac/boost/changeset/64818

Log:
completed simple update by removing some unnecessary code from both a test file and the bitfield_vector header file. Also began setting up tests for bitfield_vector
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp | 4 ++--
   sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_base_test.cpp | 6 +++---
   sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp | 15 +++++++++++++++
   3 files changed, 20 insertions(+), 5 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp 2010-08-15 10:24:43 EDT (Sun, 15 Aug 2010)
@@ -15,8 +15,8 @@
 // template <typename,typename>
 // class vector;
 
-template <typename T,std::size_t>
-struct bits;
+// template <typename T,std::size_t>
+// struct bits;
 
 
 namespace detail {

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_base_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_base_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_base_test.cpp 2010-08-15 10:24:43 EDT (Sun, 15 Aug 2010)
@@ -91,11 +91,11 @@
 
 
 
-typedef bits<short,2> T;
+// typedef bits<short,2> T;
 typedef allocator<int> alloc;
 typedef allocator<unsigned char> rebound_alloc;
 typedef detail::bitfield_vector_base<
- T,
+ short,
     alloc
> vector_base_type;
 
@@ -122,7 +122,7 @@
         BOOST_TEST((
             is_same<
                 vector_base_type::value_type,
- T
+ short
>::type::value
         ));
     }

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp 2010-08-15 10:24:43 EDT (Sun, 15 Aug 2010)
@@ -7,6 +7,21 @@
 #include <boost/integer/bitfield_vector.hpp>
 #include "test_utility.hpp"
 
+using namespace boost;
+
+/** This is done so that I can inherit from bitfield_vector and have access
+ * to the functions and members which are protectedly inherited from
+ * the bitfield_vector_base class.
+ *
+ * This is only done so that testing can be done easier.
+ *
+ */
+template <typename T, std::size_t W>
+struct test_for_bitfield_vector
+ :bitfield_vector<T, W>
+{ };
+
 int main() {
+
     return boost::report_errors();
 }


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