>From: "Vladimir Prus" <[EMAIL PROTECTED]> > Terje Slettebų wrote: > > > There are also some other issues: The current version assumes basic_string > > for the delimiters. I've found it hard to let it take an arbitrary string > > type, as the format-object (which the manipulator, basic_composite_format, > > doubles as) stores a format parameterised on type to output and character > > 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 arrays, > > 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 > > (http://groups.yahoo.com/group/boost/files/composite_stream_operators/). > > 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> when > 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 the // containers and types in the standard library. These could well be separated // 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. Regards, Terje _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost