In the below code, what does using Base::Base;
do exactly? I suspect it "copies" all constructors verbatim, since I get access to Derived(std::string)
by doing it, but is that the only effect of the statement? I originally found the statement in https://stackoverflow.com/a/3120537/5377635 and are unsuccessful in locating its description in the cpp reference.
class Base {
Base(std::string name);
};
class Derived : public Base {
using Base::Base; // <<----------
};