the code below gives the following compiler error:
error C2512: 'MyClass' : no appropriate default constructor
however, commenting out the template variable in the Thing class causes the code to compile!
Supplying a default constructor (as the error indicates) does NOT solve the problem...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.