【发布时间】:2020-01-22 02:55:17
【问题描述】:
当使用 using 声明来公开基类的方法时,如何才能公开具有相同名称但不同参数的方法?
class Base
{
protected:
void f();
void f(int);
};
class Derived: public Base
{
using Base::f; // which is exposed, and how can I manually specify?
};
【问题讨论】:
标签: c++ syntax using-declaration