Boost logo

Boost Users :

Subject: Re: [Boost-users] libc++-5 doesn't know auto_ptr anymore
From: stefan.naewe_at_[hidden]
Date: 2017-02-23 15:36:53


Am 23.02.2017 um 16:27 schrieb bebuch via Boost-users:
> Unfortunately these aren't solutions for my problem, but for the counterpart
> of it.
>
> I don't need auto_ptr, but the boost implementation of shared_ptr does.
>
> If the standard library (libc++ in this case) does not provide
> std::auto_ptr, I can't use boost::shared_ptr. (Again I won't use
> boost::shared_ptr, but the other boost libraries I use do.) The best
> solution would be, when boost::dll, boost::filesystem and boost::spirit::x3
> would use std::shared_ptr instead of boost::shared_ptr if available. (The
> same with boost::filesystem and std::filesystem by the way.)
>
> To clarify my question: Is there a way to disable std::auto_ptr overloads
> inside the boost library? Especially inside the Boost Smart Ptr library.

What about #defining BOOST_NO_AUTO_PTR ?? (Didn't test it...)

HTH

Stefan
--
----------------------------------------------------------------
/dev/random says: "Apple" (c) Copyright 1767, Sir Isaac Newton.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9 9666 829B 49C5 9221 27AF


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