Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2002-02-11 17:40:24

----- Original Message -----
From: "Dave Gomboc" <dave_at_[hidden]>
To: "Boost Mailing List" <boost_at_[hidden]>
Sent: Monday, February 11, 2002 12:52 PM
Subject: [boost] Re: Boost.Format syntax

> > Does this really add a whole lot of value
> > cout << format("%{1:hex,width=10,pad=0} %{2:dec}")(a)(b);
> > over
> > cout << format("%010x %d")(a)(b);
> It certainly does.

It disagree. It may be slightly easier to read for those new to the
system, but it is a more complicated syntax and therefore harder to
write correctly. Is it "hex" or "hexadecimal"? "width" or "w"?
"padding" or "pad"? And how is this option spelled anyway? All of
these problems go away with a terse printf style single character

Rainer Deyke | root_at_[hidden] |

Boost list run by bdawes at, gregod at, cpdaniel at, john at