The assignment operator in base class does not seem to be available in derived class. Given this code:
#include
class A{
int value;
pub
The problem is that the compiler will add an implicit assignment operator for the B class, declared as
B& operator=(const B&);
This operator will hide the operator from A, so the compiler will not know about it.
The solution is to tell the compiler to also use the operator from A with the using keyword:
class B : public A
{
public:
using A::operator=;
};