Boost logo

Boost :

Subject: Re: [boost] [shifted_ptr] Review Request
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-04-06 13:54:41

2011/4/6 àÒ¦Ê úÕÂÒÉÃØËÉÊ <mt.wizard_at_[hidden]>

> Actually, boost::make_shared involves one dynamic_cast operation (when
> getting deleter from shared_ptr object), that's why it doesn't perform
> faster at all

Where exactly is that in the code? I don't see it in make_shared.hpp
(1.46.1), and the uses inside shared_ptr.hpp look to be related to
construction and dynamic_pointer_cast.

I also surmise that dynamic_cast is still faster than heap allocation.

 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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