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