diff --git a/include/boost/mp11/detail/config.hpp b/include/boost/mp11/detail/config.hpp index 0ddb172..eab5404 100644 --- a/include/boost/mp11/detail/config.hpp +++ b/include/boost/mp11/detail/config.hpp @@ -1,12 +1,12 @@ #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED #define BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED -// Copyright 2016, 2018 Peter Dimov. +// Copyright 2016, 2018, 2019 Peter Dimov. // -// Distributed under the Boost Software License, Version 1.0. +// 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 +// See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt // BOOST_MP11_WORKAROUND @@ -121,4 +121,14 @@ # endif #endif +// BOOST_MP11_DEPRECATED(msg) + +#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1900 ) +# define BOOST_MP11_DEPRECATED(msg) +#elif BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 50000 ) +# define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg))) +#else +# define BOOST_MP11_DEPRECATED(msg) [[deprecated(msg)]] +#endif + #endif // #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED diff --git a/include/boost/mp11/utility.hpp b/include/boost/mp11/utility.hpp index 607bb4d..f9a4e8c 100644 --- a/include/boost/mp11/utility.hpp +++ b/include/boost/mp11/utility.hpp @@ -1,12 +1,12 @@ #ifndef BOOST_MP11_UTILITY_HPP_INCLUDED #define BOOST_MP11_UTILITY_HPP_INCLUDED -// Copyright 2015, 2017 Peter Dimov. +// Copyright 2015, 2017, 2019 Peter Dimov. // -// Distributed under the Boost Software License, Version 1.0. +// 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 +// See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt #include #include @@ -209,6 +209,9 @@ template using mp_invoke_q = typename Q::template fn; #endif +// old name for mp_invoke_q retained for compatibility, but deprecated +template using mp_invoke BOOST_MP11_DEPRECATED("please use mp_invoke_q") = mp_invoke_q; + } // namespace mp11 } // namespace boost