Add C++03 deprecation notice

This commit is contained in:
Peter Dimov 2023-03-06 05:56:22 +02:00
parent 83756139b2
commit 4a827b0cda
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#ifndef BOOST_TYPEOF_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
#define BOOST_TYPEOF_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 <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#if defined(BOOST_NO_CXX11_DECLTYPE) || \
defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.Typeof 1.82 and will be removed in Boost.Typeof 1.84.")
#endif
#endif // #ifndef BOOST_TYPEOF_DETAIL_REQUIRES_CXX11_HPP_INCLUDED

View File

@ -13,6 +13,7 @@
# error both typeof emulation and native mode requested
#endif
#include <boost/typeof/detail/requires_cxx11.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>