delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
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 <J DOT Kraaijeveld AT Askesis DOT nl> |
To: | "'cygwin AT sourceware DOT cygnus DOT com'" <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) |
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 <iostream> #include <strstream> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |