diff --git a/include/boost/core/addressof.hpp b/include/boost/core/addressof.hpp index 733a606..b73ea56 100644 --- a/include/boost/core/addressof.hpp +++ b/include/boost/core/addressof.hpp @@ -172,14 +172,19 @@ namespace detail { template T addressof_declval() BOOST_NOEXCEPT; +template +struct addressof_void { + typedef void type; +}; + template struct addressof_member_operator { static constexpr bool value = false; }; template -struct addressof_member_operator().operator&(), void())> { +struct addressof_member_operator().operator&())>::type> { static constexpr bool value = true; }; @@ -196,8 +201,8 @@ struct addressof_non_member_operator { }; template -struct addressof_non_member_operator()), void())> { +struct addressof_non_member_operator()))>::type> { static constexpr bool value = true; }; @@ -208,7 +213,7 @@ struct addressof_expression { template struct addressof_expression(), void())> { + typename addressof_void())>::type> { static constexpr bool value = true; };