
14 Apr
2011
14 Apr
'11
2:11 a.m.
Maxime van Noppen
On 04/11/2011 06:20 PM, Ryan Gallagher wrote:
I think you could just write:
std::cout << fmt % "a" % "b" % "c"; std::cout << fmt % 1 % 2 % 3;
When the str(format&) or operator<<(std::ostream&, format&) is applied it
should
check and clear the format bindings. HTH,
Of course, and it works, but I don't like to be bitten without knowing what happened exactly. :) It might also be worth mentioning in the doc.
Yeah, was bitten by this too a long time back and had to look it up in the docs to understand. Does this help explain? http://www.boost.org/doc/libs/1_46_0/libs/format/doc/format.html#how_it_work... But, yeah, perhaps they should have a "don't do this" example with explanation in that section.