Opened 13 years ago

Closed 11 years ago

Last modified 11 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 Changed 11 years ago by Samuel Krempp

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

comment:2 Changed 11 years ago by Samuel Krempp

Status: newassigned

comment:3 Changed 11 years ago by Samuel Krempp

Resolution: Nonefixed
Status: assignedclosed

comment:4 Changed 11 years ago by Samuel Krempp

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

comment:5 Changed 11 years ago by René Rivera

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