]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/token_iterator.hpp
thinko: if we have requires, do not test package
[lyx.git] / boost / boost / token_iterator.hpp
index f7aa1a3e3379f19a0d018ce2791afcb34888da8d..19b1db26c8625f6d386080f1e56c93d98e283ac5 100644 (file)
@@ -84,7 +84,7 @@ namespace boost
             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_;}
 
@@ -94,7 +94,7 @@ namespace boost
 
       Type current_token()const{return tok_;}
 
-      bool at_end()const{return valid_;}
+      bool at_end()const{return !valid_;}