From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-04-22 06:07:05
Giovanni Bajo wrote:
> - No class boost::format. No function boost::format. It's just
> template <typename T> std::string operator%(std::string, T whatever),
> and you inject it into your global namespace (a clash is _very_,
> _very_ unlikely). That's all you need: a function that lets you
> format a single parameter into a string and get the new string as
> result. In a perfect world, I'd like that operator% to be defined
> into namespace std.
Very appealing... but doesn't work, for me, at least.
"%1% %3%" % 5 % 6 % 7; // should yield "5 7"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk