|
Boost Users : |
Subject: Re: [Boost-users] libc++-5 doesn't know auto_ptr anymore
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2017-02-23 14:17:50
On Thu, Feb 23, 2017 at 1:44 AM, bebuch via Boost-users <
boost-users_at_[hidden]> wrote:
> I just tried to compile one of my projects with LLVM-TOT and got a lot of
> error massages in boost's shared_ptr implementation because libc++ removes
> std::auto_ptr.
>
auto_ptr has been removed from the upcoming C++17 standard.
> (I don't use boost::shared_ptr directly, but via parts of boost::dll and
> boost:spirit::x3.)
>
> Is there a workaround?
>
You can either:
* not build with C++17 (-std=c++1z), or
* define the macro _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR before including
any standard library files (on the command-line or in the Jamfile)
-- Marshall
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