$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Kirk (steven.kirk_at_[hidden])
Date: 2002-07-19 03:04:43
The new(ish) weak_ptr has the template function make_shared, would it be a
good idea to create a make_shared function for creation of a shared_ptr from
a raw pointer?
This would make code slightly easier to read IMHO:
return boost::shared_ptr<some_class>(new some_class(1));
would become
return boost::make_shared(new some_class(1));
This would serve a similar purpose to the standard library's make_pair
function for example.
Regards,
Steven