That seems similar in some ways to MrEdd's valur_ptr, but with move-semantics instead.
This is a discussion on Deleting an object if the constructor failed. within the C++ Programming forums, part of the General Programming Boards category; That seems similar in some ways to MrEdd's valur_ptr , but with move-semantics instead....
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"