Boost logo

Boost Users :

Subject: Re: [Boost-users] [format] Alternative syntax
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-29 15:33:33


AMDG

Emre Turkay wrote:
> Any interest in the alternative syntax for boost::format?
>
> format2 f("Hello %s, %s");
> std::cout << f("Joe", "Jane") << std::endl
> << f("Jose", "Mary") << std::endl;
>
> Which creates the output;
>
> Hello Joe, Jane
> Hello Jose, Mary
>
> Code is available at http://bit.ly/2J60Re for any suggessions.
>

Why is this syntax better?

In Christ,
Steven Watanabe


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