I'm reading some code that goes:
extern class MyClass : BaseClass
{
...
} MyInstance;
Does the extern refer to the class declaration or the instance?
I'm reading some code that goes:
extern class MyClass : BaseClass
{
...
} MyInstance;
Does the extern refer to the class declaration or the instance?
Instance. Classes cannot be extern.
Although the code smells - this snippet suggests that true declaration of that instance uses a separate class definition. Bad, bad idea - defining the class twice.