Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-06-30 12:03:05

I like it. Just be careful not to overdesign this library. Simpler is
usually better.


----- Original Message -----
From: "Samuel Krempp" <krempp_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, June 30, 2001 10:36 AM
Subject: [boost] format2: adding useful features

> On another plane than the isssues on operators vs function, how to treat
> the manipulators etc..,
> I'm open to suggestions on what could be a nice feature to add to a
> formatting class / function.
> So long, centered-alignment was brought in with previous format class, and
> is already implemented in my format2.
> I have a project to provide a much more innovative feature :-),
> which is some kind of a customised-tabulations system :
> It would have a syntax precising a number, but would *not* specify a
> argument number, as it would not print in one of the arguments, but merely
> is in itself a special printing directive.
> let 's fix a first-try syntax,
> $t40 to mean "tabulation-40"
> ( while $1 means "argument 1", in a shell-like syntax, and %1$s means the
> same in a printf syntax, both supported, but that's not the point here..)
> then I'm thinking of this :
> format("$1, at $2, with x=$3: $t40$4\n") %arg1 %arg2 %arg3 %arg4
> The result would be that the argument 4 would be printed at colon 40,
> that is, the previous part of the string would be padded to reach 40
> characters (unless it is already bigger)
> I find that useful because most of the time we only want to align one (or
> maybe 2..) arguments on a fixed position, when we print stuff indicating
> progress of computations within a loop, or so..
> Would such a feature please someone, beyond me ?
> --
> Sam
> Info: Unsubscribe:
> Your use of Yahoo! Groups is subject to

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