Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#570 closed Bugs (fixed)

boost::format parse method doesn't work

Reported by: andyjoseph Owned by: Samuel Krempp
Milestone: Component: format
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by René Rivera)

In version 1.33.1:

The method boost::format.parse() doesn't properly reset
its internal state.  The simple code block below
demonstrates this.

format fmt("one");
cout << fmt.str();

fmt.parse("two");
cout << fmt.str();

---
The output is:
oneonetwo

What's happening is the parse method seems to append
the second parsing string to the first one.

Change History (5)

comment:1 by Samuel Krempp, 15 years ago

Owner: changed from samuel_k to Samuel Krempp
Severity: Problem
Status: assignednew

comment:2 by Samuel Krempp, 15 years ago

Status: newassigned

comment:3 by Samuel Krempp, 15 years ago

Resolution: Nonefixed
Status: assignedclosed

comment:4 by Samuel Krempp, 15 years ago

Thanks for spotting this, the bugfix is commited. And sorry for the delay.

comment:5 by René Rivera, 15 years ago

Component: Noneformat
Description: modified (diff)
Note: See TracTickets for help on using tickets.