From 4a827b0cda9692eae159256d0be54c7e38e0ab4e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 6 Mar 2023 05:56:22 +0200 Subject: [PATCH] Add C++03 deprecation notice --- include/boost/typeof/detail/requires_cxx11.hpp | 18 ++++++++++++++++++ include/boost/typeof/typeof.hpp | 1 + 2 files changed, 19 insertions(+) create mode 100644 include/boost/typeof/detail/requires_cxx11.hpp diff --git a/include/boost/typeof/detail/requires_cxx11.hpp b/include/boost/typeof/detail/requires_cxx11.hpp new file mode 100644 index 0000000..e58b160 --- /dev/null +++ b/include/boost/typeof/detail/requires_cxx11.hpp @@ -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 +#include + +#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 diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index 37488ca..da593f1 100644 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -13,6 +13,7 @@ # error both typeof emulation and native mode requested #endif +#include #include #include