From 1958e965613d176d9ea0aa74b699ac23acc68b39 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 5 Mar 2023 02:38:16 +0200 Subject: [PATCH] Add C++03 deprecation notice --- .../container_hash/detail/requires_cxx11.hpp | 22 +++++++++++++++++++ include/boost/container_hash/hash.hpp | 1 + .../container_hash/is_contiguous_range.hpp | 1 + include/boost/container_hash/is_range.hpp | 1 + 4 files changed, 25 insertions(+) create mode 100644 include/boost/container_hash/detail/requires_cxx11.hpp diff --git a/include/boost/container_hash/detail/requires_cxx11.hpp b/include/boost/container_hash/detail/requires_cxx11.hpp new file mode 100644 index 0000000..61db135 --- /dev/null +++ b/include/boost/container_hash/detail/requires_cxx11.hpp @@ -0,0 +1,22 @@ +#ifndef BOOST_HASH_DETAIL_REQUIRES_CXX11_HPP_INCLUDED +#define BOOST_HASH_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_TUPLE) + +BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.ContainerHash 1.82 and will be removed in Boost.ContainerHash 1.84.") + +#endif + +#endif // #ifndef BOOST_HASH_DETAIL_REQUIRES_CXX11_HPP_INCLUDED diff --git a/include/boost/container_hash/hash.hpp b/include/boost/container_hash/hash.hpp index d89938e..605644b 100644 --- a/include/boost/container_hash/hash.hpp +++ b/include/boost/container_hash/hash.hpp @@ -11,6 +11,7 @@ #define BOOST_FUNCTIONAL_HASH_HASH_HPP #include +#include #include #include #include diff --git a/include/boost/container_hash/is_contiguous_range.hpp b/include/boost/container_hash/is_contiguous_range.hpp index 0e31c11..96043cc 100644 --- a/include/boost/container_hash/is_contiguous_range.hpp +++ b/include/boost/container_hash/is_contiguous_range.hpp @@ -5,6 +5,7 @@ #ifndef BOOST_HASH_IS_CONTIGUOUS_RANGE_HPP_INCLUDED #define BOOST_HASH_IS_CONTIGUOUS_RANGE_HPP_INCLUDED +#include #include #include #include diff --git a/include/boost/container_hash/is_range.hpp b/include/boost/container_hash/is_range.hpp index 56fbd2e..2d3746c 100644 --- a/include/boost/container_hash/is_range.hpp +++ b/include/boost/container_hash/is_range.hpp @@ -5,6 +5,7 @@ #ifndef BOOST_HASH_IS_RANGE_HPP_INCLUDED #define BOOST_HASH_IS_RANGE_HPP_INCLUDED +#include #include #include #include