Inheriting copy and move constructors of base class using “using” keyword
问题 I want to inherit copy constructor of the base class using using keyword: #include <iostream> struct A { A() = default; A(const A &) { std::cerr << __PRETTY_FUNCTION__ << std::endl; } A( A &&) { std::cerr << __PRETTY_FUNCTION__ << std::endl; } A& operator=(const A &) { std::cerr << __PRETTY_FUNCTION__ << std::endl; return *this; } A& operator=( A &&) { std::cerr << __PRETTY_FUNCTION__ << std::endl; return *this; } }; struct B : A { using A::A; using A::operator=; B& operator=(const B &) { std