Sorry for the short answer, but yes. This exactly does what you want:
class derived : public base {
public:
virtual int foo(int) const;
using base::foo;
};
Also note that you can access the database even without using:
derived x;
string str = x.base::foo();
source
share