In ah, I created an array without a keyword externby mistake, which should lead to a preliminary definition
a.h:
MyStruct myArrayOfStructs [];
This array is then defined in a.cpp
a.cpp:
MyStruct myArrayOfStructs[CONSTANT];
This is amazingly compiled.
Why didn't the compiler complain about overriding?
source
share