Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62887 - in sandbox/SOC/2010/bit_masks/lib/integer/test: . bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-12 19:24:56


Author: bbartman
Date: 2010-06-12 19:24:55 EDT (Sat, 12 Jun 2010)
New Revision: 62887
URL: http://svn.boost.org/trac/boost/changeset/62887

Log:
added a file for testing of the bitfield_tuple clas
s

Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 | 1 +
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/get_interface_test.cpp | 33 +++++++++++----------------------
   2 files changed, 12 insertions(+), 22 deletions(-)

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-12 19:24:55 EDT (Sat, 12 Jun 2010)
@@ -36,5 +36,6 @@
         [ run bitfield_tuple_test.cpp ]
         [ run bft_testing/ref_type_testing.cpp ]
         [ run bft_testing/name_accessor_test.cpp ]
+ [ run bft_testing/get_interface_test.cpp ]
     ;
 

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/get_interface_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/get_interface_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/get_interface_test.cpp 2010-06-12 19:24:55 EDT (Sat, 12 Jun 2010)
@@ -15,29 +15,18 @@
 struct blue;
 struct salmon;
 
-
-
+typedef bitfield_tuple<
+ member<char,red,4>,
+ member<unsigned char, green,5>,
+ storage<std::size_t>,
+ member<int, blue, 16>
+> test_tuple;
+void const_interface_testing() {
+
+}
 
 int main() {
-
-
- // tesitng so I can learn to use mpl::find_if
- // for looking up while useing the get<> function in side bitfield_tuple.
- typedef mpl::find_if<
- test_vect,
- details::match_name<
- mpl::_1,
- red
- >
- >::type temp_located;
-
- BOOST_MPL_ASSERT_NOT((
- is_same<
- temp_located,
- mpl::end<
- test_vect
- >::type
- >
- ));
+ {
+ }
     return 0;
 }


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