|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63301 - in sandbox/SOC/2010/bit_masks: boost/integer/details/bft lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-24 20:19:21
Author: bbartman
Date: 2010-06-24 20:19:19 EDT (Thu, 24 Jun 2010)
New Revision: 63301
URL: http://svn.boost.org/trac/boost/changeset/63301
Log:
still working on converting to a single reference type within the bitfield_tuple
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/details/bft/reference_builder.hpp | 4 +---
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp | 16 +++++++++++++---
2 files changed, 14 insertions(+), 6 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/reference_builder.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/reference_builder.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/reference_builder.hpp 2010-06-24 20:19:19 EDT (Thu, 24 Jun 2010)
@@ -122,7 +122,7 @@
typename BitfieldTuple::members
>::type member_end;
- // create the reference type what will be returned if
+ // create the bitfield_reference type that will be returned if
// disable_if is enabled.
typedef typename BitfieldTuple::template bitfield_reference<
typename mpl::if_<
@@ -146,8 +146,6 @@
>,
reference_type
>::type type;
-
-
};
}} // end boost::details
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp 2010-06-24 20:19:19 EDT (Thu, 24 Jun 2010)
@@ -30,10 +30,20 @@
typedef details::disable_if_reference_type_by_name<
const test_tuple_1,
salmon
- >::type ref_t;
- std::size_t store_house = 0 ;
- ref_t ref(store_house);
+ >::type ref_t_1;
+ std::size_t store_house = 0;
+
+ typedef details::disable_if_reference_type_by_name<
+ test_tuple_1,
+ salmon
+ >::type ref_t_2;
+ ref_t_2 non_const_ref(store_house);
+ non_const_ref = 3;
+ ref_t_1 const_ref(store_house);
+ BOOST_ASSERT(( const_ref == 3));
}
+
+
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