I would like to write a piece of code that shows all copy/assignment/delete etc. operations that are done on the object when passing it to a function.
I wrote this:
In C++11, you should add rvalue reference:
A(A&&); void operator=(A&& a );