Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Format to a string
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-06-27 17:46:03


On 6/26/2011 6:40 PM, Szymon Gatner wrote:
>> interesting part?
>
> use str() free function:
>
> std::string s = str(boost::format ("blah blah blah") % exp1 % exp2 %exp3)
>
> same when passing format to functions taking std::string params
>
> Szymon

Putting it at the beginning is pretty much the same as putting it at the end.


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