[Boost-bugs] [ boost-Bugs-1178068 ] Past-the-end tokenization in parse_date()

Bugs item #1178068, was opened at 2005-04-06 23:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1178068&group_id=7586 Category: date_time Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andrey Melnikov (nimnul) Assigned to: Jeff Garland (az_sw_dude) Summary: Past-the-end tokenization in parse_date() Initial Comment: Loop termination condition is wrong. Comma is used instead of and operator: for(boost::tokenizer<>::iterator beg=tok.begin(); beg!=tok.end(), pos < spec_str.size(); ++beg, ++pos) Should read as for(boost::tokenizer<>::iterator beg=tok.begin(); beg!=tok.end() && pos < spec_str.size(); ++beg, ++pos) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1178068&group_id=7586 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net