From ee80491cabdeb9ef19592c2c2155a841a6d09536 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 6 Mar 2023 07:49:33 +0200 Subject: [PATCH] Add C++03 deprecation notice --- include/boost/system/detail/config.hpp | 1 + .../boost/system/detail/requires_cxx11.hpp | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 include/boost/system/detail/requires_cxx11.hpp diff --git a/include/boost/system/detail/config.hpp b/include/boost/system/detail/config.hpp index 4164b53..1231291 100644 --- a/include/boost/system/detail/config.hpp +++ b/include/boost/system/detail/config.hpp @@ -8,6 +8,7 @@ // // See http://www.boost.org/libs/system for documentation. +#include #include #include diff --git a/include/boost/system/detail/requires_cxx11.hpp b/include/boost/system/detail/requires_cxx11.hpp new file mode 100644 index 0000000..1bf6a1f --- /dev/null +++ b/include/boost/system/detail/requires_cxx11.hpp @@ -0,0 +1,21 @@ +#ifndef BOOST_SYSTEM_DETAIL_REQUIRES_CXX11_HPP_INCLUDED +#define BOOST_SYSTEM_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_CONSTEXPR) || \ + defined(BOOST_NO_CXX11_NOEXCEPT) || \ + defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) || \ + defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || \ + defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) + +BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.System 1.82 and will be removed in Boost.System 1.84.") + +#endif + +#endif // #ifndef BOOST_SYSTEM_DETAIL_REQUIRES_CXX11_HPP_INCLUDED