Skip to content

Commit a3368f0

Browse files
committed
add C++03 deprecation warnings
1 parent e4447e8 commit a3368f0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

include/boost/variant/detail/config.hpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,22 @@
1616
#include <boost/config.hpp>
1717
#include <boost/detail/workaround.hpp>
1818

19+
#include <boost/config/pragma_message.hpp>
20+
#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
21+
defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) || \
22+
defined(BOOST_NO_CXX11_CONSTEXPR) || \
23+
defined(BOOST_NO_CXX11_NULLPTR) || \
24+
defined(BOOST_NO_CXX11_NOEXCEPT) || \
25+
defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || \
26+
defined(BOOST_NO_CXX11_FINAL) || \
27+
defined(BOOST_NO_CXX11_ALIGNOF) || \
28+
defined(BOOST_NO_CXX11_STATIC_ASSERT) || \
29+
defined(BOOST_NO_CXX11_SMART_PTR) || \
30+
defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST) || \
31+
defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
32+
33+
BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Variant 1.82 and will be removed in Boost.Variant 1.84.")
34+
35+
#endif
36+
1937
#endif // BOOST_VARIANT_DETAIL_CONFIG_HPP

0 commit comments

Comments
 (0)