C++: How to use dtor order to detect temporaries
chuttenblog.wordpress.com