$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Smart Ptr] make_shared slower than shared_ptr(new) on VC++9 (and 10) with fix
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-04-30 12:51:55
On 29/04/12 03:16, Ahmed Charles wrote:
> The downside of having it be a base class is that classes can now be
> marked final, which means they can't be used as base classes. This
> approach was used by libc++ for implementing the same optimization
> that STL mentions VC's STL implements, but I think they end up falling
> back to storing it if it's empty and final.
>
> I suppose what we really want is static if. :)
Everything you could do with static if you can already do without, just
with more verbose syntax.
In this particular case, however, I don't see how any if-like technique
would help. I cannot think of a method to tell whether a type is empty
without inheriting from it.