Struct inside C++ 'struct name' does not name a type -
a.h
class { enum e {one , 2 , three}; struct b { char a; e num; }; static const b arr[]; } a.cpp
const b a::arr[] = { {'1', one}, {'2', two}, {'3', three} }; i following error while compiling: 'b' not name type
b defined in scope of a, need refer full name:
const a::b a::arr[] = { ....
Comments
Post a Comment