|
Boost : |
From: Mattias Flodin (flodin_at_[hidden])
Date: 2002-05-13 06:03:13
I may be missing something here, but I thought a format library has
been in the makings for some time now. What is the difference between
this proposal and the library already in progress?
/Mattias
On Sun, May 12, 2002 at 11:05:41PM +0200, Dirk Gerrits wrote:
> > What I am proposing here is an 'extension' to std::string to add
> formatting
> > capabilities ala-sprintf, but in a type-safe, no-ellipsis manner. The
> credit
> > for this idea goes to Trolltech (QString in the Qt package
> > ...
> > A quick example:
> >
> > cout << mystring("Hello, my name is %1 and I am %2 years
> > old").arg("Giovanni").arg(999) << endl;
>
> I would find this a nice addition indeed. QString works very beautifully.
-- Mattias Flodin <flodin_at_[hidden]> - http://www.cs.umu.se/~flodin/ Room NADV 102 Department of Computing Science Umeå University S-901 87 Umeå, Sweden -- "If a tree-named newsreader is used to post something on usenet and nobody reads it, is it really lame?" -- KC Smith
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk