Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2002-05-03 16:58:13


From: "David B. Held" <dheld_at_[hidden]>
> > > Also, take note of the situations in which using a
> > > custom deleter is dangerous.
> >>
> shared_ptr<FILE> f(p, fclose);
> shared_ptr<FILE> g(0, fflush);
>
> g = f;
>
> Contrived, but compilable.

And harmless?

Mark


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