$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: maeder+boost_at_[hidden]
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?