From a421c908e3c1a1bf732e90e608ad72e95f18b195 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 4 Mar 2023 19:58:19 +0200 Subject: [PATCH] Add notice for C++03 deprecation --- include/boost/bind/apply.hpp | 1 + include/boost/bind/bind.hpp | 3 ++- include/boost/bind/detail/requires_cxx11.hpp | 22 ++++++++++++++++++++ include/boost/bind/mem_fn.hpp | 5 +++-- include/boost/bind/protect.hpp | 1 + include/boost/bind/std_placeholders.hpp | 1 + include/boost/bind/storage.hpp | 1 + 7 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 include/boost/bind/detail/requires_cxx11.hpp diff --git a/include/boost/bind/apply.hpp b/include/boost/bind/apply.hpp index 5c315ac..0520fd0 100644 --- a/include/boost/bind/apply.hpp +++ b/include/boost/bind/apply.hpp @@ -11,6 +11,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#include #include namespace boost diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index 13a94a3..fd0ee14 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -21,6 +21,7 @@ // See http://www.boost.org/libs/bind/bind.html for documentation. // +#include #include #include #include @@ -28,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/bind/detail/requires_cxx11.hpp b/include/boost/bind/detail/requires_cxx11.hpp new file mode 100644 index 0000000..e78d8f9 --- /dev/null +++ b/include/boost/bind/detail/requires_cxx11.hpp @@ -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 +#include + +#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 diff --git a/include/boost/bind/mem_fn.hpp b/include/boost/bind/mem_fn.hpp index 5afb0a1..1078e7c 100644 --- a/include/boost/bind/mem_fn.hpp +++ b/include/boost/bind/mem_fn.hpp @@ -21,9 +21,10 @@ // See http://www.boost.org/libs/bind/mem_fn.html for documentation. // -#include +#include #include -#include +#include +#include namespace boost { diff --git a/include/boost/bind/protect.hpp b/include/boost/bind/protect.hpp index ef26fe9..9c7c120 100644 --- a/include/boost/bind/protect.hpp +++ b/include/boost/bind/protect.hpp @@ -12,6 +12,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#include #include #include #include diff --git a/include/boost/bind/std_placeholders.hpp b/include/boost/bind/std_placeholders.hpp index 04c9ba5..125ff24 100644 --- a/include/boost/bind/std_placeholders.hpp +++ b/include/boost/bind/std_placeholders.hpp @@ -11,6 +11,7 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#include #include #include diff --git a/include/boost/bind/storage.hpp b/include/boost/bind/storage.hpp index 5d84027..2ab0db1 100644 --- a/include/boost/bind/storage.hpp +++ b/include/boost/bind/storage.hpp @@ -21,6 +21,7 @@ // See http://www.boost.org/libs/bind/bind.html for documentation. // +#include #include #include