I have the following code:
#include <cstdio>
Conclusion:
60 70 60 70 10 20
The code works almost as expected. The problem is that it prints the values โโof the a2 object twice ... which means that the destructor is called twice ... but why is it called twice?
user4093373
source share