1 2 3 4 5 6 7 8 9
struct A { A(int); // prevent default ctor }; struct B { A a; }; B b;
1 2 3
t.cpp: In constructor 'B::B()': Line 5: error: no matching function for call to 'A::A()' compilation terminated due to -Wfatal-errors.