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
Wrapper to pass shared_ptr to &, const &, *, const * through std::bind.
cv5_class
bank queue
insertion sort
7
test
Peregruzka
function returning a function demo
FUCK
user defined exception