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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -