Boost C++ Libraries: Ticket #4077: for-loop condition operator < does not work https://svn.boost.org/trac10/ticket/4077 <p> I have tried to use tokenizer in my prefered form with the less than operator in the loop condition. </p> <p> looks like this: </p> <p> for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter &lt; tokens.end(); tok_iter ++) </p> <blockquote> <p> vInVector.push_back( *tok_iter ); </p> </blockquote> <p> I got an compiler error on visual studio 7.1 with the details of iterator_facade implementation. I think, this code example is valid and this bug should be fixed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4077 Trac 1.4.3 Sebastian Redl Thu, 08 Apr 2010 14:40:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4077#comment:1 https://svn.boost.org/trac10/ticket/4077#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Tokenizer's iterators are not random access iterators, therefore &lt; does not work. Use !=, which is idiomatic for iterator loops. </p> Ticket