S
Smeckler
I can't find any references to this in google's archive, but I'm sure it
must be an old chestnut...
The declaration
MyClass* p(NULL);
is fine under gcc, but not VC6. I suspect VC6 thinks this is a declaration
of a pointer to a function taking an argument of type 'NULL' ?
So is the right way?
MyClass (*p)(NULL);
Or is gcc correct to allow the above?
Cheers all.
must be an old chestnut...
The declaration
MyClass* p(NULL);
is fine under gcc, but not VC6. I suspect VC6 thinks this is a declaration
of a pointer to a function taking an argument of type 'NULL' ?
So is the right way?
MyClass (*p)(NULL);
Or is gcc correct to allow the above?
Cheers all.