$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [shared_ptr] Design question about make_shared
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2011-06-15 06:35:05
[STL]
> Actually, make_shared<T>() needs access to shared_ptr's guts, at least if the
> implementer takes advantage of the obvious and highly desirable optimization.
> They are tightly coupled to begin with.
[Emil Dotchevski]
> However, the coupling between make_shared and shared_ptr is an
> implementation detail.
Right, that's what I was trying to say - internally, they are coupled, yet make_shared goes out of its way to be a free function.
STL