From 080e8581d524ed88456ba77bd31b2338f5e1437b Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sat, 23 Nov 2019 16:51:56 +0300 Subject: [PATCH] Add deprecation warnings for headers in detail dir --- include/boost/detail/iterator.hpp | 6 +++++- include/boost/detail/no_exceptions_support.hpp | 4 ++++ include/boost/detail/scoped_enum_emulation.hpp | 4 ++++ test/detail_iterator_test.cpp | 1 + test/quick.cpp | 1 - 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/boost/detail/iterator.hpp b/include/boost/detail/iterator.hpp index 2498ef4..95ec737 100644 --- a/include/boost/detail/iterator.hpp +++ b/include/boost/detail/iterator.hpp @@ -6,7 +6,11 @@ #ifndef ITERATOR_DWA122600_HPP_ #define ITERATOR_DWA122600_HPP_ -// This header is obsolete and will be deprecated. +// This header is obsolete and deprecated. + +#include + +BOOST_HEADER_DEPRECATED("") #include #if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) diff --git a/include/boost/detail/no_exceptions_support.hpp b/include/boost/detail/no_exceptions_support.hpp index 7d17454..2cf0938 100644 --- a/include/boost/detail/no_exceptions_support.hpp +++ b/include/boost/detail/no_exceptions_support.hpp @@ -12,6 +12,10 @@ // The header file at this path is deprecated; // use boost/core/no_exceptions_support.hpp instead. +#include + +BOOST_HEADER_DEPRECATED("") + #include #endif diff --git a/include/boost/detail/scoped_enum_emulation.hpp b/include/boost/detail/scoped_enum_emulation.hpp index 1c7bc23..6e47c0f 100644 --- a/include/boost/detail/scoped_enum_emulation.hpp +++ b/include/boost/detail/scoped_enum_emulation.hpp @@ -12,6 +12,10 @@ // The header file at this path is deprecated; // use boost/core/scoped_enum.hpp instead. +#include + +BOOST_HEADER_DEPRECATED("") + #include #endif diff --git a/test/detail_iterator_test.cpp b/test/detail_iterator_test.cpp index a6ca7d7..13eef58 100644 --- a/test/detail_iterator_test.cpp +++ b/test/detail_iterator_test.cpp @@ -8,6 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt // +#define BOOST_ALLOW_DEPRECATED_HEADERS #include #include #include diff --git a/test/quick.cpp b/test/quick.cpp index 7f266c3..f82d77b 100644 --- a/test/quick.cpp +++ b/test/quick.cpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include