$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Maitre Bart (maitrebart_at_[hidden])
Date: 2006-11-28 15:35:49
I am assuming I am at the right tribune! (Let me know otherwise)
I would suggest to add a constructor (as well as the supporting members and
rules) to scoped_ptr<> that could allow specifying a deleter, as per:
template<class Y, class D> scoped_ptr(Y * p, D d);
as the same exists for shared_ptr<>.
The deleter feature in shared_ptr is very useful for raii with any kind of
resource (variables, functions, objects, etc.). Having it in scoped_ptr will
offer the same advantage for noncopyable pointers.
Thank you.