This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Default constructed stringbufs and stringstreams


Benjamin Kosnik wrote:

For:
	* testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
	* testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.

Have you thought of adopting the approach that filebuf uses and just use a
constrait_stringbuf. I'd suggest testsuite_io.h....

If you'd like, you could just templatize constraint_filebuf in
testsuite_io.h, rename to constrait_streambuf, inherit from the template
parameter.


Yes, you are right. Will come up with something later today...

Thanks!
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]