Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
constructor-is-not-called-in-this-aggregation-class
#include <iostream> #include <memory> using namespace std; class A { public: A() { cout << "A()" << endl; } }; class B { public: A a; B(const A& a1) : a(a1) { cout << "B(const A&)" << endl; } /* B(const A& a1) { a = a1; cout << "B(const A&)" << endl; } */ }; int main() { B b(A()); /* no ouput */ }
run
|
edit
|
history
|
help
0
Vector examples....
Assertion Divide by Zero Example
Deleted special operations are propagated to derived class
Te
GreedyProblem1
Example of custom deleter to manage a resource.
le regime keto aviss
EBO
appliWall
Test bitfields with unnamed union