Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-24 13:34:18


Author: johnmaddock
Date: 2007-11-24 13:34:17 EST (Sat, 24 Nov 2007)
New Revision: 41339
URL: http://svn.boost.org/trac/boost/changeset/41339

Log:
Changed meaning of "at_end" needs copy-constructor fix.
Text files modified:
   trunk/boost/token_iterator.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/token_iterator.hpp
==============================================================================
--- trunk/boost/token_iterator.hpp (original)
+++ trunk/boost/token_iterator.hpp 2007-11-24 13:34:17 EST (Sat, 24 Nov 2007)
@@ -84,7 +84,7 @@
             token_iterator<TokenizerFunc, OtherIter,Type> const& t
             , typename enable_if_convertible<OtherIter, Iterator>::type* = 0)
             : f_(t.tokenizer_function()),begin_(t.base())
- ,end_(t.end()),valid_(t.at_end()),tok_(t.current_token()) {}
+ ,end_(t.end()),valid_(!t.at_end()),tok_(t.current_token()) {}
 
       Iterator base()const{return begin_;}
 


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