Scope Guard Idiom Implementation in C++11