boost::format parse method doesn't work
— at Version 5
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)
Owner: |
changed from samuel_k to Samuel Krempp
|
Severity: |
→ Problem
|
Status: |
assigned → new
|
Resolution: |
None → fixed
|
Status: |
assigned → closed
|
Component: |
None → format
|
Description: |
modified (diff)
|
Thanks for spotting this, the bugfix is commited. And sorry for the delay.