Assign a vaiable a certain value when going out of scope.
Use it e.g. to reset/cleanup in presence of exceptions.
* struct Foo
* {
* void consume()
* {
* _inConsume = true;
*
MIL << _inConsume << endl;
* };
*
* DefaultIntegral<bool,false> _inConsume;
* };
*
* Foo f;
*
MIL << f._inConsume << endl;
* f.consume();
*
MIL << f._inConsume << endl;
*
- Todo:
- Check if using call_traits enables 'DtorReset(std::string,"value")', as this currently would require assignment of 'char[]'.
Definition at line 49 of file DtorReset.h.