From 65bbbbc359b2e1c57f589d020b8e9615a9a05843 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 5 Mar 2023 20:00:18 +0200 Subject: [PATCH] Add C++03 deprecation notice --- include/boost/function/detail/prologue.hpp | 1 + .../boost/function/detail/requires_cxx11.hpp | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 include/boost/function/detail/requires_cxx11.hpp diff --git a/include/boost/function/detail/prologue.hpp b/include/boost/function/detail/prologue.hpp index 53d0f05..2edebe0 100644 --- a/include/boost/function/detail/prologue.hpp +++ b/include/boost/function/detail/prologue.hpp @@ -9,6 +9,7 @@ #ifndef BOOST_FUNCTION_PROLOGUE_HPP #define BOOST_FUNCTION_PROLOGUE_HPP +# include # include # include # include // unary_function, binary_function diff --git a/include/boost/function/detail/requires_cxx11.hpp b/include/boost/function/detail/requires_cxx11.hpp new file mode 100644 index 0000000..a68da21 --- /dev/null +++ b/include/boost/function/detail/requires_cxx11.hpp @@ -0,0 +1,22 @@ +#ifndef BOOST_FUNCTION_DETAIL_REQUIRES_CXX11_HPP_INCLUDED +#define BOOST_FUNCTION_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.Function 1.82 and will be removed in Boost.Function 1.84.") + +#endif + +#endif // #ifndef BOOST_FUNCTION_DETAIL_REQUIRES_CXX11_HPP_INCLUDED