Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2003-02-04 10:09:02

>From: "Vladimir Prus" <ghost_at_[hidden]>

> Terje Slettebø wrote:
> > There are also some other issues: The current version assumes
> > for the delimiters. I've found it hard to let it take an arbitrary
> > type, as the format-object (which the manipulator,
> > doubles as) stores a format parameterised on type to output and
> > type. The latter is so that if multiple streams with different character
> > types are used, they should not use the same format-object..
> Is assuming basic_string really a problem?

No, not really. I was just thinking of generality. However, as it is, it
needs the character type, anyway.

> > By the way, just for fun. Adding the following output operator for
> > to the header I gave in the previous posting:
> > -------
> > |O|X|O|
> > -------
> > |X|X|O|
> > -------
> > |O|O|X|
> > -------
> >
> > "Shall we play a game?" :)
> Sure thing :-)

I guess you maybe got the "War Games" reference? :)

> > I've uploaded the new version here
> > (
> There are two more points:
> 1. Could you put this to the sandbox, too. Yahoogroups is less convenient.

Sure. :)

> 2. I think that we better have separate headers for stl containers, like
> suggested in my original email (<boost/io/vector.hpp>, etc). That's
> because I'd like to output maps, but would not like to include <map>
> I need to output a vector.

Heh, just before I got this posting, I had added the following comment in
the header:

// The following are just a few examples of output operators, for some of
// containers and types in the standard library. These could well be
// in other files. That would also reduce the number of includes.


Will do. I'll get back to your other comments, I just need to look more into
how it might be done.



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