forked from boostorg/config
Add BOOST_HEADER_DEPRECATED
This commit is contained in:
1 parent
24a2cc623d
commit
da9f4d062b
11 files changed
+109
-19
No files matched your search
@@ -105,6 +105,7 @@ test-suite config
|
||||
[ run config_build_check.cpp : : : [ requires int128 cxx11_constexpr cxx11_user_defined_literals ] ]
|
||||
[ run helper_macros_test.cpp ]
|
||||
[ compile pragma_message_test.cpp ]
|
||||
[ compile header_deprecated_test.cpp ]
|
||||
;
|
||||
|
||||
obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright 2017 Peter Dimov.
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/config/header_deprecated.hpp>
|
||||
|
||||
BOOST_HEADER_DEPRECATED("<boost/config/workaround.hpp>")
|
||||
|
||||
#define ALTERNATIVE "the suitable component header"
|
||||
BOOST_HEADER_DEPRECATED(ALTERNATIVE)
|
||||
|
||||
#include <boost/config.hpp> // BOOST_STRINGIZE
|
||||
|
||||
#define HEADER <boost/config/workaround.hpp>
|
||||
BOOST_HEADER_DEPRECATED(BOOST_STRINGIZE(HEADER))
|
||||
Reference in new issue
Block a user