This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
problems with vtable-thunks
- To: "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
- Subject: problems with vtable-thunks
- From: Joost Kraaijeveld <J dot Kraaijeveld at Askesis dot nl>
- Date: Tue, 20 Jun 2000 12:52:28 +0200
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.Kraaijeveld@Askesis.nl
web: www.askesis.nl
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com