I have a base class:
class Base {
public:
Base(??? new_p) : p(new_p) {}
std::unique_ptr<MyType> p;
}
And a derived class:
class Derived : public Base {
Derived(??? new_p) : Base(new_p) {}
}
What type do I replace the question marks with if I want to construct Derived? Other changed are also fine. I want to make sure Derived can be constructed without copying the MyType that is pointed to by p.