Boost logo

Boost :

Subject: Re: [boost] [shared_ptr] Design question about make_shared
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2011-06-15 06:35:05

> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at