Reference Implementation of C++ ISO LEWG N3830 scoped_resource.h