|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64814 - in sandbox/SOC/2010/bit_masks: boost/bitfield boost/integer/detail/bft lib/integer/test/bitfield_vector_testing
From: bbartmanboost_at_[hidden]
Date: 2010-08-15 09:44:39
Author: bbartman
Date: 2010-08-15 09:44:35 EDT (Sun, 15 Aug 2010)
New Revision: 64814
URL: http://svn.boost.org/trac/boost/changeset/64814
Log:
Fixed bugs vicente sent me.
Text files modified:
sandbox/SOC/2010/bit_masks/boost/bitfield/bitfield_orignal.hpp | 4 ++--
sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/reference_builder.hpp | 6 ++++--
sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/test_utility.hpp | 8 +++++++-
3 files changed, 13 insertions(+), 5 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/boost/bitfield/bitfield_orignal.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/bitfield/bitfield_orignal.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/bitfield/bitfield_orignal.hpp 2010-08-15 09:44:35 EDT (Sun, 15 Aug 2010)
@@ -216,13 +216,13 @@
//! setter from a value type
void set(value_type val) {
- field_ = (field_ & ~FIELD_MASK) | value_to_storage(val);
+ field_ = (field_ & ~FIELD_MASK) | this_type::value_to_storage(val);
}
//! Returns the bitfield value.
value_type get() const {
- return storage_to_value(field_);
+ return this_type::storage_to_value(field_);
}
private:
Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/reference_builder.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/reference_builder.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/reference_builder.hpp 2010-08-15 09:44:35 EDT (Sun, 15 Aug 2010)
@@ -67,8 +67,10 @@
mpl::size_t<
Index
>,
- mpl::size<
- typename BitfieldTuple::members
+ mpl::size_t<
+ mpl::size<
+ typename BitfieldTuple::members
+ >::type::value
>
> is_valid_index;
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/test_utility.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/test_utility.hpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/test_utility.hpp 2010-08-15 09:44:35 EDT (Sun, 15 Aug 2010)
@@ -80,12 +80,18 @@
}
template <typename T>
-std::string to_binary(T x) {
+std::string to_binary(T
+#if 0
+x) {
typedef unsigned long long ullt;
std::stringstream ss(std::stringstream::in|std::stringstream::out);
ss << std::setfill('0') << std::setw(boost::bit_width<T>::value)
<< std::bitset< boost::bit_width<T>::value >(ullt(x)).to_string();
return std::string(ss.str());
+#else
+) {
+ return std::string();
+#endif
}
void print_from_to(unsigned char* ptr, std::size_t to) {
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