|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62351 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-05-31 14:05:18
Author: bbartman
Date: 2010-05-31 14:05:18 EDT (Mon, 31 May 2010)
New Revision: 62351
URL: http://svn.boost.org/trac/boost/changeset/62351
Log:
hammered out most of the bugs with the interface for the bit_mask_group
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/bit_mask_group.hpp | 2 +-
sandbox/SOC/2010/bit_masks/lib/integer/test/bit_mask_group_test.cpp | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 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-31 14:05:18 EDT (Mon, 31 May 2010)
@@ -155,7 +155,7 @@
//@{
template <typename Name>
struct get_by_name {
- typedef typename mpl::m_at<named_type_map, Name>::type type;
+ typedef typename mpl::at<named_type_map, Name>::type type;
};
template <unsigned int Index>
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bit_mask_group_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bit_mask_group_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bit_mask_group_test.cpp 2010-05-31 14:05:18 EDT (Mon, 31 May 2010)
@@ -18,5 +18,21 @@
BOOST_ASSERT(( testing_type1().get< 0 >() == low_bits<int,9>() ));
BOOST_ASSERT(( testing_type1().get< name_tag >() == low_bits<int,9>() ));
+
+ BOOST_ASSERT((
+ is_same<
+ testing_type1::get_by_index<0>::type,
+ low_bits<int,9>
+ >::value
+ ));
+
+ BOOST_ASSERT((
+ is_same<
+ testing_type1::get_by_name< name_tag >::type,
+ low_bits<int,9>
+ >::value
+ ));
+
+
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