June 17, 2008

Constructors not allowed a return type

So if you're using Microsoft Visual Studio and programming C++, and see the generic error "constructors not allowed a return type", (and your constructor isn't returning anything) make sure you have a ; at the end of your class definition before pulling your hair out.

That's why I'm bald.

Posted by adyer at 10:01 PM