Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-05-03 15:59:58


"Mark Rodgers" <mark.rodgers_at_[hidden]> wrote in message
news:00dd01c1f2e2$581e5c80$0100a8c0_at_mshome.net...
> From: "David B. Held" <dheld_at_[hidden]>
> > Also, take note of the situations in which using a
> > custom deleter is dangerous.
>
> When's that exactly?

shared_ptr<FILE> f(p, fclose);
shared_ptr<FILE> g(0, fflush);

g = f;

Contrived, but compilable.

Dave


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