On Sat, Oct 29, 2011 at 5:16 PM, Jonathan M Davis <jmdavisp...@gmx.com>wrote:
> > and get compiler ambiguity for abc("str") between the two templates > above. > > Of course you do. A narrow string is a dynamic array, so it matches both. > You > need to change the second constraint to if(isDynamicArray!T && > !isNarrowString!T), then narrow strings won't match both. > > - Jonathan M Davis > Yup, just tried it and works fine.