Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69536 - in sandbox/icl/libs/icl/example: . large_bitset_
From: afojgo_at_[hidden]
Date: 2011-03-03 15:38:51


Author: jofaber
Date: 2011-03-03 15:38:50 EST (Thu, 03 Mar 2011)
New Revision: 69536
URL: http://svn.boost.org/trac/boost/changeset/69536

Log:
Merged changes from trunk back to sandbox at 1.46.1
Properties modified:
   sandbox/icl/libs/icl/example/ (props changed)
Text files modified:
   sandbox/icl/libs/icl/example/large_bitset_/large_bitset.hpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: sandbox/icl/libs/icl/example/large_bitset_/large_bitset.hpp
==============================================================================
--- sandbox/icl/libs/icl/example/large_bitset_/large_bitset.hpp (original)
+++ sandbox/icl/libs/icl/example/large_bitset_/large_bitset.hpp 2011-03-03 15:38:50 EST (Thu, 03 Mar 2011)
@@ -166,7 +166,10 @@
     //[large_bitset_segment_apply
     large_bitset& segment_apply(segment_combiner combine, const interval_type& operand)
     {
- using namespace boost; // same as
+ using namespace boost;
+ if(icl::is_empty(operand))
+ return *this;
+ // same as
         element_type base = icl::first(operand) >> shift, // icl::first(operand) / divisor
                        ceil = icl::last (operand) >> shift; // icl::last (operand) / divisor
         word_type base_rest = icl::first(operand) & mask , // icl::first(operand) % divisor


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