1
0
forked from boostorg/bind

Add notice for C++03 deprecation

This commit is contained in:
Peter Dimov
2023-03-04 19:58:19 +02:00
parent 41dda10827
commit a421c908e3
7 changed files with 31 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/config.hpp>
namespace boost

View File

@@ -21,6 +21,7 @@
// See http://www.boost.org/libs/bind/bind.html for documentation.
//
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/config.hpp>
#include <boost/bind/mem_fn.hpp>
#include <boost/type.hpp>
@@ -28,7 +29,7 @@
#include <boost/bind/arg.hpp>
#include <boost/bind/detail/result_traits.hpp>
#include <boost/bind/std_placeholders.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/config/workaround.hpp>
#include <boost/visit_each.hpp>
#include <boost/core/ref.hpp>
#include <boost/core/enable_if.hpp>

View File

@@ -0,0 +1,22 @@
#ifndef BOOST_BIND_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
#define BOOST_BIND_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
// Copyright 2023 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
defined(BOOST_NO_CXX11_DECLTYPE) || \
defined(BOOST_NO_CXX11_CONSTEXPR) || \
defined(BOOST_NO_CXX11_NOEXCEPT) || \
defined(BOOST_NO_CXX11_HDR_FUNCTIONAL)
BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Bind 1.82 and will be removed in Boost.Bind 1.84.")
#endif
#endif // #ifndef BOOST_BIND_DETAIL_REQUIRES_CXX11_HPP_INCLUDED

View File

@@ -21,9 +21,10 @@
// See http://www.boost.org/libs/bind/mem_fn.html for documentation.
//
#include <boost/config.hpp>
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/get_pointer.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
namespace boost
{

View File

@@ -12,6 +12,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#include <utility>

View File

@@ -11,6 +11,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/is_placeholder.hpp>
#include <boost/config.hpp>

View File

@@ -21,6 +21,7 @@
// See http://www.boost.org/libs/bind/bind.html for documentation.
//
#include <boost/bind/detail/requires_cxx11.hpp>
#include <boost/config.hpp>
#include <boost/bind/arg.hpp>