Monday, December 17, 2012

Extra namespace in compilation error

So one day you find yourself coding along, maybe even doing some refactoring... and you get a typical C++ compiler error, "line 37: ;Foo::Foo::Bar' has not been declared"

And you think to yourself, "self, I have a class Foo::Bar, but not Foo::Foo::Bar"...

Well, you probably don't, but you might have a missing "}" that is really changing the scope of your declaration and giving you this wonderful, but not so helpful error...

It's an error so easy a caveman could fix it!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.