Wednesday, June 11, 2008

xxx.cpp:424: error: request for member‘yyy’ in ‘zzz’, which is of non-class type ‘ClassA ()()’

haha! I had the same problem.

ClassA variableName;

I didn't realize it thought variableName() would be a function prototype. I kept thinking it would be like the overloaded constructor functions.

0 comments: