15 Jun
2011
15 Jun
'11
12:36 p.m.
Thanks for the recommendation. The problem turned out to be indeed with forward declarations. I wish the compilation errors were somewhat more informative, so that I could find the root cause of the problem easily.
I don't know what compiler you used and what your real code looked like, but when I tried to compile some portions of your sample code with VC10, I got a lot of "use of undefined type" errors.