Opened 18 years ago

Closed 18 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:

Description

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 by nimnul, 18 years ago

Status: assignedclosed
Logged In: YES 
user_id=133193

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