Boost logo

Boost Users :

Subject: Re: [Boost-users] Convert boost::shared_ptr to std::shared_ptr for boost::dll::import
From: degski (degski_at_[hidden])
Date: 2018-04-13 11:16:05


On 13 April 2018 at 01:12, Martijn Otto via Boost-users <
boost-users_at_[hidden]> wrote:

> Wouldn't it be an option to test for the existence of std::make_shared.
> This could be done using SFINAE. If it exists we can alias the
> functionality from std:: into boost:: and if not we use the boost
> implementation.
>
> To make it less hairy the header could also be generated b2 before
> building.
>
> This way we maintain compatibility with older and competely unsupported
> compilers running on unsupported operating systems (why are we doing
> that again?) without causing interoperability trouble for others.
>

All of the above already exists:
https://eldiener.github.io/cxx_dual/doc/html/index.html#cxxd.introduction

degski



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