|
|
@@ -1417,7 +1417,7 @@ public:
|
|
|
|
|
|
if(const auto &ref = fetch_node(); ref.details) {
|
|
|
if(auto *elem = internal::find_member<&internal::meta_func_node::id>(ref.details->func, id); elem != nullptr) {
|
|
|
- if(const auto *candidate = lookup(args, sz, (wrapped->base().policy() == any_policy::cref), [curr = elem]() mutable { return (curr != nullptr) ? std::exchange(curr, curr->next.get()) : nullptr; }); candidate) {
|
|
|
+ if(const auto *candidate = lookup(args, sz, std::is_const_v<std::remove_reference_t<Instance>>, [curr = elem]() mutable { return (curr != nullptr) ? std::exchange(curr, curr->next.get()) : nullptr; }); candidate) {
|
|
|
return candidate->invoke(std::move(wrapped), args);
|
|
|
}
|
|
|
}
|