我有像下面这样的场景:访问父命名空间在C++
class criterion
{
// stuff about criteria...
};
namespace hex {
class criterion : public criterion //does not compile
{ //This should inherit from the
//A hex specific criterion //criterion class in the global namespace
};
};
我的问题是 - 如何在一个namspace这是另一个命名空间的父做一个继承一个类?
Billy3