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
mailto:boost-users@lists.boost.org> 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