
6 Apr
2011
6 Apr
'11
5:54 p.m.
2011/4/6 Юрій Зубрицький <mt.wizard@gmail.com>
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@eviloverlord.com> (847) 691-1404