Boost logo

Boost :

From: Karl Nelson (kenelson_at_[hidden])
Date: 2001-12-20 14:08:33


> On Thu, 2001-12-20 at 02:52, Karl Nelson wrote:
>
> > If you want to force rules of presidence use what is given for
> > that...
> >
> > cout << (format(str) << 1 << 2) << endl;
> >
> > The class could be designed to handle that.
>
> It could, but then in those cases it would act like a string-maker, not
> a manipulator.

I gave this a bit of thought and I think that format really shouldn't
be a manipulator. It should be a method of an ostream...

  cout.format("There are %d items\n") << i;

However, in the face of the fact that I can't get it into
standard in that form. I think manipulator is best.

--Karl


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