6 messages in com.mysql.lists.plusplusRe: Query class derived from std::ost...
FromSent OnAttachments
Spinka, Kristofer17 Nov 2005 14:27.txt, .txt, .txt
Chris Frey20 Nov 2005 18:08 
Chris Frey20 Nov 2005 19:34 
Spinka, Kristofer22 Nov 2005 09:32 
Warren Young23 Nov 2005 12:47 
Chris Frey23 Nov 2005 12:51 
Subject:Re: Query class derived from std::ostream constructor issue
From:Spinka, Kristofer (kspi@style.net)
Date:11/22/2005 09:32:54 AM
List:com.mysql.lists.plusplus

That sounds like a much better way to manage the object creation.

Nice!

/kristofer

Thanks for this bug report and patch! I believe this will affect the ABI, so I'm waiting for Warren's comments.

I think a better way to handle this would be to use the protected init() member. Regular streams like fstream and stringstream need to behave the same way as our Query, since they need to controll their own buf objects.

For example, they do (from g++ headers):

basic_ifstream() : __istream_type(NULL), _M_filebuf() { this->init(&_M_filebuf); }

This would prevent a change in the ABI.