exception_info * x = get_exception_info(e);
x++;
++x;
Let's assume get_exception_info returns a reference.
How do you prevent this code:
exception_info * x = &get_exception_info(e);
x++;
++x;
Pointers are part of the C++ language, like it or not. :)
--Emil