Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions include/boost/openmethod/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2800,10 +2800,13 @@ class method<Id, ReturnType(Parameters...), Registry> :
//! @tparam Fn One or more functions to the overrider list
template<auto... Fn>
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<override_aux<Fn, decltype(Fn), false>...>>>
boost::mp11::mp_unique<boost::mp11::mp_list<
override_aux<Fn, std::decay_t<decltype(Fn)>, false>...>>>
impl;
};

Expand All @@ -2829,10 +2832,11 @@ class method<Id, ReturnType(Parameters...), Registry> :
// right time.
template<auto... Fn>
class inline_override {
// decay_t: see override.
boost::mp11::mp_apply<
detail::tuple,
boost::mp11::mp_unique<
boost::mp11::mp_list<override_aux<Fn, decltype(Fn), true>...>>>
boost::mp11::mp_unique<boost::mp11::mp_list<
override_aux<Fn, std::decay_t<decltype(Fn)>, true>...>>>
impl;
};

Expand Down
Loading