Add compile-time warning to deprecated headers

This commit is contained in:
Nikita Kniazev
2020-02-13 17:22:37 +03:00
parent 994ff83292
commit c25b0e5069
6 changed files with 15 additions and 0 deletions

View File

@ -15,6 +15,10 @@
# pragma once
#endif
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED("<boost/range/reverse_iterator.hpp>")
#include <boost/range/reverse_iterator.hpp>
#include <boost/type_traits/remove_reference.hpp>

View File

@ -15,6 +15,10 @@
# pragma once
#endif
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED("<boost/range/iterator.hpp>")
#include <boost/range/iterator.hpp>
namespace boost

View File

@ -15,6 +15,10 @@
# pragma once
#endif
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED("<boost/range/reverse_iterator.hpp>")
#include <boost/range/reverse_iterator.hpp>
namespace boost

View File

@ -8,6 +8,7 @@
// For more information, see http://www.boost.org/libs/range/
//
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/range/const_reverse_iterator.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>

View File

@ -8,6 +8,7 @@
// For more information, see http://www.boost.org/libs/range/
//
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/range/result_iterator.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>

View File

@ -8,6 +8,7 @@
// For more information, see http://www.boost.org/libs/range/
//
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/range/reverse_result_iterator.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>