initialize members in object-lifetime.cpp

master
neingeist 11 years ago
parent 292143e700
commit e270dda904

@ -14,7 +14,10 @@ struct C {
A a;
B b;
C() { puts("C()"); }
C()
: a(), b() {
puts("C()");
}
~C() { puts("~C()"); }
};

Loading…
Cancel
Save