$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r67677 - trunk/libs/icl/example/large_bitset_
From: afojgo_at_[hidden]
Date: 2011-01-05 06:10:49
Author: jofaber
Date: 2011-01-05 06:10:47 EST (Wed, 05 Jan 2011)
New Revision: 67677
URL: http://svn.boost.org/trac/boost/changeset/67677
Log:
Added check for empty intervals in example large_bitset.
Text files modified: 
   trunk/libs/icl/example/large_bitset_/large_bitset.hpp |     5 ++++-                                   
   1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/libs/icl/example/large_bitset_/large_bitset.hpp
==============================================================================
--- trunk/libs/icl/example/large_bitset_/large_bitset.hpp	(original)
+++ trunk/libs/icl/example/large_bitset_/large_bitset.hpp	2011-01-05 06:10:47 EST (Wed, 05 Jan 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