Date: 2002-05-04 03:14:25
"David B. Held" <dheld_at_[hidden]> writes:
> shared_ptr<FILE> f(p, fclose);
> shared_ptr<FILE> g(0, fflush);
PMFJI, but I keep wondering why this example keeps reappearing. Both
fclose() and fflush() have return values that should usually be checked.
This makes them bad examples for shared pointers with user-specified
deleter functions IMHO. Or has anybody found a good way for dealing with
them indicating failure?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk