From dbba3cec7b3f868cbb02c8542d5f78a30ecd5d01 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 6 Mar 2023 09:43:45 +0200 Subject: [PATCH] Add C++03 deprecation notice --- .../boost/unordered/detail/requires_cxx11.hpp | 21 +++++++++++++++++++ include/boost/unordered/unordered_map.hpp | 1 + include/boost/unordered/unordered_set.hpp | 1 + 3 files changed, 23 insertions(+) create mode 100644 include/boost/unordered/detail/requires_cxx11.hpp diff --git a/include/boost/unordered/detail/requires_cxx11.hpp b/include/boost/unordered/detail/requires_cxx11.hpp new file mode 100644 index 00000000..b7c7b813 --- /dev/null +++ b/include/boost/unordered/detail/requires_cxx11.hpp @@ -0,0 +1,21 @@ +#ifndef BOOST_UNORDERED_DETAIL_REQUIRES_CXX11_HPP_INCLUDED +#define BOOST_UNORDERED_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) + +BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Unordered 1.82 and will be removed in Boost.Unordered 1.84.") + +#endif + +#endif // #ifndef BOOST_UNORDERED_DETAIL_REQUIRES_CXX11_HPP_INCLUDED diff --git a/include/boost/unordered/unordered_map.hpp b/include/boost/unordered/unordered_map.hpp index 6d05471c..8a8bc062 100644 --- a/include/boost/unordered/unordered_map.hpp +++ b/include/boost/unordered/unordered_map.hpp @@ -15,6 +15,7 @@ #pragma once #endif +#include #include #include #include diff --git a/include/boost/unordered/unordered_set.hpp b/include/boost/unordered/unordered_set.hpp index 1bd4ba3d..23837b2d 100644 --- a/include/boost/unordered/unordered_set.hpp +++ b/include/boost/unordered/unordered_set.hpp @@ -15,6 +15,7 @@ #pragma once #endif +#include #include #include #include