Boost logo

Boost Users :

Subject: Re: [Boost-users] Convert boost::shared_ptr to std::shared_ptr for boost::dll::import
From: Edward Diener (eldiener_at_[hidden])
Date: 2018-04-13 13:19:14


On 4/13/2018 8:49 AM, Chris Glover via Boost-users wrote:
> On Fri, 13 Apr 2018 at 08:24 Edward Diener via Boost-users
> <boost-users_at_[hidden] <mailto:boost-users_at_[hidden]>> wrote:
>
> The reason some libraries use boost::shared_ptr rather than
> std::shared_ptr has nothing to do with supporting VC7.1 at all. The
> most
> obvious reason is that a given library works with code at the c++03
> level and does not require c++11 on up. You may feel that this is
> wrong,
> but this is another issue entirely than still having to support VC7.1.
>
>
> There are of course other reasons for choosing the boost variant over
> the std variant, even outside of boost. Four that often influence me are:
>
> - Boost often offers an extended API
> - Boost components can be forward declared
> - Boost offers the same implementation across platforms
> - I can fix a boost version should I need to
>
> My projects tend to reach for boost over std for most components as a
> result of this.

I totally understand your reasons. One of the uses of my CXX Dual
library is that it is easy to override the choice of the standard
version of a dual library when it is available for the Boost version of
a dual library, while still using the exact same code.

>
> -- chris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net