<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 15, 2014 at 3:42 AM, Sebastian Redl <span dir="ltr"><<a href="mailto:sebastian.redl@getdesigned.at" target="_blank">sebastian.redl@getdesigned.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><div>On 15 Sep 2014, at 3:59, Richard Smith <<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>> wrote:</div><blockquote type="cite"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>This gives a rather different problem. In the original question, we had</div><div><br></div><div>MyStruct -> float* -> bool -> void func(bool)</div><div>MyStruct -> T* (T = int) -> void func(int*)</div><div><br></div><div>(Note that we can't use the template for the bool overload of func, because we cannot deduce T.) In your version, we have an ambiguous conversion sequence for MyStruct and a user-defined conversion sequence for func(int*).</div></div></div></div></div></blockquote><div><br></div></span><div>The struct is the template, not the conversion operator. And once the struct template is instantiated, there is no difference to a non-template struct.</div></div></div></blockquote><div><br></div><div>Sorry, right you are =)</div></div></div></div>