Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <1F8B49DD9100D31195FC00A0C94989FE159507@obelix> From: Joost Kraaijeveld To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: problems with vtable-thunks Date: Tue, 20 Jun 2000 12:52:28 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain If I compile the following source with -fvtable-thunks it prints "s.fail()", if I compile it without -fvtable-thunks it does not. Is this a bug or is this by design? If by design, can anyone point explain it to me (or point me to a URL). Yes, I know strstream is depricated. #include #include class Base { public: Base() : ulong(10) {} unsigned long ulong; }; int main(int argc, char* argv[], char* /*envp[]*/) { Base base; std::strstream s; s.write(&base,sizeof(Base)); if(s.fail()) { std::cout << "s.fail()" << std::endl; } return 0; } Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 email: J DOT Kraaijeveld AT Askesis DOT nl web: www.askesis.nl -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com