Boost logo

Boost :

From: Karl Nelson (kenelson_at_[hidden])
Date: 2001-12-21 17:05:55


>
> Also, I think it solves any possible problem of precedence, since parenthesis
> are always needed.
> And an added bonus, is that we can apply a member function at the end without
> an extra set of parenthesis
> (or am I mistaken ?)
> string s = pformat("%d, %d")(x)(y).str() ;
> hum, once written it does not look as nice as I thought, maybe this aspect sh
> ould not be used too much.

The big downside from this is the glue. How to I interpret this?

   cout << format("%1, %2")(hex)(a)(b) << endl;

It appears (if not careful) to be three arguments. I think it is
more pleasant than "%" but still making it like a stream is still
the best.

Happy coding!

--Karl


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk