Boost logo

Boost :

From: Jeff Garland (azswdude_at_[hidden])
Date: 2020-08-11 14:46:31


On Tue, Aug 11, 2020 at 7:17 AM Stefan Seefeld via Boost <
boost_at_[hidden]> wrote:

>
> Note that the usage in Boost.Python is already wrapped in
>
> `# if !defined(BOOST_NO_AUTO_PTR)`
>
>
Interesting.

> so in principle that code shouldn't be visible in C++14 and beyond.
> Hence my question.
>
> I'll investigate.
>
>
You're right -- it looks like the logic is there. Maybe the
is_auto_ptr.hpp just doesn't have it in the include path (it isn't there
directly).

 config/libstdcpp3.hpp

// std::auto_ptr isn't provided with _GLIBCXX_DEPRECATED=0 (GCC 4.5 and
earlier)
// or _GLIBCXX_USE_DEPRECATED=0 (GCC 4.6 and later).
#if defined(BOOST_LIBSTDCXX11)
# if BOOST_LIBSTDCXX_VERSION < 40600
# if !_GLIBCXX_DEPRECATED
# define BOOST_NO_AUTO_PTR
# endif
# elif !_GLIBCXX_USE_DEPRECATED
# define BOOST_NO_AUTO_PTR
# endif
#endif

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk