Boost logo

Boost Users :

Subject: Re: [Boost-users] [format] Reuse of the format object
From: Maxime van Noppen (maxime_at_[hidden])
Date: 2011-04-11 12:27:26


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.

-- 
Maxime

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net