Original Post
Yesterday I got DevC++/GCC3.2. However I can't get this to compile whereas Microsoft/Borland compilers work absolutely fine (no error, no warning... All errors/warnings turn on):
Besides this, I found out that the hInstance member of WNDCLASSEX and WNDCLASS is HANDLE type. Shouldn't it be HINSTANCE type? Nowonder I got this error "unable to convert to 'void*' from 'HINSTANCE__*'".... hmm.... wierd.
[EDIT] Miss a bracket.
[edited by - DerekSaw on December 23, 2002 8:11:14 PM]
class Foo
{
public:
Foo() { }
void SomeFunc() { do something }
Foo& operator<< ( void (Foo::*method)() )
{
(this->*method)();
return *this;
}
};
Foo foo;
foo << Foo::SomeFunc; // ok in Microsoft/Borland, but error in GCC.