class Foo
{
void Stuff()
{
// do stuff
}
}
namespace Test
{
class Bar : Foo
{
void Stuff() override
{
Foo::Stuff(); // ERR: Namespace 'Foo' doesn't exist.
::Foo::Stuff(); // ERR: Namespace '::Foo' doesn't exist.
}
}
}
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Unable to call base function on class outside of namespace
It doesn't seem to be possible to call the base function on a class outside of a namespace. For example:
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement