<br><br><div class="gmail_quote">On Sat, Oct 29, 2011 at 5:16 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">> and get compiler ambiguity for abc("str") between the two templates above.<br>
<br>
</div></div>Of course you do. A narrow string is a dynamic array, so it matches both. You<br>
need to change the second constraint to if(isDynamicArray!T &&<br>
!isNarrowString!T), then narrow strings won't match both.<br>
<font color="#888888"><br>
- Jonathan M Davis<br>
</font></blockquote></div><div><br></div>Yup, just tried it and works fine.<br><br>