diff --git a/include/boost/mp11/utility.hpp b/include/boost/mp11/utility.hpp index adbed4d..a8a32fb 100644 --- a/include/boost/mp11/utility.hpp +++ b/include/boost/mp11/utility.hpp @@ -222,8 +222,23 @@ template using mp_invoke_q = typename Q::template fn; #endif // old name for mp_invoke_q retained for compatibility, but deprecated +#if !defined(__clang__) + template using mp_invoke BOOST_MP11_DEPRECATED("please use mp_invoke_q") = mp_invoke_q; +#else + +// Clang doesn't warn on deprecated alias templates + +template struct BOOST_MP11_DEPRECATED("please use mp_invoke_q") mp_invoke_ +{ + using type = mp_invoke_q; +}; + +template using mp_invoke = typename mp_invoke_::type; + +#endif + // mp_not_fn

template class P> struct mp_not_fn {