Boost logo

Boost :

From: Karl Nelson (kenelson_at_[hidden])
Date: 2002-02-11 12:20:46


> From: "Karl Nelson" <kenelson_at_[hidden]>
> > Second, what is reasonable here? Under Microsoft .Net they allow the
> > same argument to be used multiple times. Or an argument not to be
> > used. Should this be valid?
> >
> > cout << format("%2$d %2$x", i, i);
>
> Why not?

It drives down preformance because you must now scan the format
strings list to find out all the places the string is used and
do the conversions. Also it breaks 1-1 correspondence with the
arguments. But then if it is needed that it should have it.
Does it need it?

--Karl


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