This reminds me of the time I was debugging someone else's C++ code, which returned a const char * from a conversion operator.
The value was "magically" changing 2 calls later.
It turned out the pointer being returned was to a buffer on the stack with enough other locals in front of it that the first call wasn't overwriting it...
--
Mike
In reply to Re: Suspending Disbelief While Debugging
by RMGir
in thread Suspending Disbelief While Debugging
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |