Boost logo

Boost :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-07-08 04:20:31


> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk