Mam scenariusz, jak następuje:Dostęp do przestrzeni nazw dominującą w 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
};
};
Moje pytanie brzmi - w jaki sposób można dziedziczyć po klasie w namspace który jest rodzicem innej przestrzeni nazw?
Billy3