Opened 14 years ago

Closed 14 years ago

#382 deleted Bugs (None)

Past-the-end tokenization in parse_date()

Reported by: nimnul Owned by: az_sw_dude
Milestone: Component: date_time
Version: None Severity:
Keywords: Cc:


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)

Change History (1)

comment:1 Changed 14 years ago by nimnul

Status: assignedclosed
Logged In: YES 

Sorry... Seems to be a duplicate of 1155556
Note: See TracTickets for help on using tickets.