On Sunday, 19 May 2013 at 18:27:08 UTC, Walter Bright wrote:
oldVar isn't being default constructed in your example, nor can I see why you'd need a default constructor in order to use RAII for save/restore.

I need to save the value at construction and restore at destruction. I don't need any runtime parameter at construction.

Reply via email to