diff --git a/include/boost/openmethod/core.hpp b/include/boost/openmethod/core.hpp index 8276f7dc..9edd2036 100644 --- a/include/boost/openmethod/core.hpp +++ b/include/boost/openmethod/core.hpp @@ -2800,10 +2800,13 @@ class method : //! @tparam Fn One or more functions to the overrider list template class override { + // decay_t: MSVC 19.52 gives `decltype(Fn)` for a free function in an + // auto parameter pack the function type rather than the pointer type, + // which does not match override_aux's partial specialization. boost::mp11::mp_apply< detail::tuple, - boost::mp11::mp_unique< - boost::mp11::mp_list...>>> + boost::mp11::mp_unique, false>...>>> impl; }; @@ -2829,10 +2832,11 @@ class method : // right time. template class inline_override { + // decay_t: see override. boost::mp11::mp_apply< detail::tuple, - boost::mp11::mp_unique< - boost::mp11::mp_list...>>> + boost::mp11::mp_unique, true>...>>> impl; };