C++ rvalue parameter – Debian
I write this code: #include <iostream> using namespace std; class Foo { public: int a = 0; Foo() { cout << "ctor: " << this << endl; } ~Foo() { cout << "dtor: " << this << endl; } };…
I write this code: #include <iostream> using namespace std; class Foo { public: int a = 0; Foo() { cout << "ctor: " << this << endl; } ~Foo() { cout << "dtor: " << this << endl; } };…