I\'m facing a problem in C++ :
#include
class A
{
protected:
void some_func(const unsigned int& param1)
{
std::cout << \"
The problem is that in the derived class you are hiding the protected method in the base class. You can do a couple of things, either you fully qualify the protected method in the derived object or else you bring that method into scope with a using directive:
class B : public A
{
protected:
using A::some_func; // bring A::some_func overloads into B
public:
virtual ~B() {}
virtual void some_func(const unsigned int& param1, const char*)
{
A::some_func(param1); // or fully qualify the call
}
};