Как сохранить конструктор по умолчанию в производном классе, не добавляя Derived() = default;
в производный класс?
struct Base
{
Base() = default;
};
struct Derived : Base
{
using Base::Base;
explicit Derived(int) {}
};
int main()
{
// Compilation error here
Derived d;
}