Boost logo

Boost :

From: Stewart, Robert (stewart_at_[hidden])
Date: 2002-02-11 13:50:50


From: Peter Dimov [mailto:pdimov_at_[hidden]]
> Sent: Monday, February 11, 2002 12:03 PM
>
> 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 allows a class of errors -- accidentally referring to the second argument
both times, instead of both -- that it may be better to prevent.

Rob
Susquehanna International Group, LLP
http://www.sig.com


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