|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64447 - sandbox/SOC/2010/bit_masks/boost/integer/detail/bft
From: bbartmanboost_at_[hidden]
Date: 2010-07-29 12:47:35
Author: bbartman
Date: 2010-07-29 12:47:34 EDT (Thu, 29 Jul 2010)
New Revision: 64447
URL: http://svn.boost.org/trac/boost/changeset/64447
Log:
fixed bug in one of my tests.
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parsing_meta_functions.hpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parsing_meta_functions.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parsing_meta_functions.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parsing_meta_functions.hpp 2010-07-29 12:47:34 EDT (Thu, 29 Jul 2010)
@@ -120,8 +120,8 @@
mpl::size_t<
bit_width< typename Mask::value_type >::value >
>::type::value ))
- &&
- bool( ZeroCount < std::size_t(bit_width< typename Mask::value_type >::value))
+ // &&
+ // bool( ZeroCount != std::size_t(bit_width< typename Mask::value_type >::value))
>
{ };
@@ -145,7 +145,11 @@
template <typename Mask>
struct count_trailing_zeros {
- typedef typename ptr_detail::ctz_helper<Mask>::type type;
+ typedef typename mpl::if_c<
+ (Mask::value == 0u),
+ mpl::size_t< bit_width< typename Mask::value_type >::value >,
+ ptr_detail::ctz_helper< Mask>
+ >::type::type type;
};
}}}} // end boost::bitfields::detail::pointer_member
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