From b84ac7969b4df0ff6add52c0e87fce4cde5db242 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 5 Mar 2023 17:54:23 +0200 Subject: [PATCH] Add C++03 deprecation notice --- include/boost/endian/arithmetic.hpp | 1 + include/boost/endian/buffers.hpp | 1 + include/boost/endian/conversion.hpp | 1 + .../boost/endian/detail/requires_cxx11.hpp | 23 +++++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 include/boost/endian/detail/requires_cxx11.hpp diff --git a/include/boost/endian/arithmetic.hpp b/include/boost/endian/arithmetic.hpp index 062d8ce..fc9f8a1 100644 --- a/include/boost/endian/arithmetic.hpp +++ b/include/boost/endian/arithmetic.hpp @@ -27,6 +27,7 @@ # pragma warning(disable:4365) // conversion ... signed/unsigned mismatch #endif +#include #include #include #include diff --git a/include/boost/endian/buffers.hpp b/include/boost/endian/buffers.hpp index f87ddef..d0278c8 100644 --- a/include/boost/endian/buffers.hpp +++ b/include/boost/endian/buffers.hpp @@ -27,6 +27,7 @@ # pragma warning(disable: 4127) // conditional expression is constant #endif +#include #include #include #include diff --git a/include/boost/endian/conversion.hpp b/include/boost/endian/conversion.hpp index 2104ae4..067a832 100644 --- a/include/boost/endian/conversion.hpp +++ b/include/boost/endian/conversion.hpp @@ -8,6 +8,7 @@ #ifndef BOOST_ENDIAN_CONVERSION_HPP #define BOOST_ENDIAN_CONVERSION_HPP +#include #include #include #include diff --git a/include/boost/endian/detail/requires_cxx11.hpp b/include/boost/endian/detail/requires_cxx11.hpp new file mode 100644 index 0000000..8230081 --- /dev/null +++ b/include/boost/endian/detail/requires_cxx11.hpp @@ -0,0 +1,23 @@ +#ifndef BOOST_ENDIAN_DETAIL_REQUIRES_CXX11_HPP_INCLUDED +#define BOOST_ENDIAN_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_SCOPED_ENUMS) || \ + defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) + +BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Endian 1.82 and will be removed in Boost.Endian 1.84.") + +#endif + +#endif // #ifndef BOOST_ENDIAN_DETAIL_REQUIRES_CXX11_HPP_INCLUDED