Search This Blog

Saturday, March 13, 2010

C++ Tricky

Nothing better than a bit of C++ for breakfast:
Reading A StackOverflow post I hacked a bit with an Object called SaveRestore.
The trick is to know that when the object gets out of scope { }, is destroyed.
You need to maintain a reference to the object and its value.

No comments: