On 1/15/2015 10:58 AM, DSF wrote:
>
> explicit FBaseString(size_t bufferlen);
> explicit FBaseString(CH ch);
>
> CH can only be char or wchar_t.
> The above produces the error:
> Error: readdirs.cpp(287,32):Ambiguity between
> 'FBaseString<wchar_t>::FBaseString(unsigned int)' and
> 'FBaseString<wchar_t>::FBaseString(wchar_t)'
>
Also, in this case, explicit is a red herring. The issue is that your
compiler is apparently not creating a distinct type for wchar_t, but
using a typedef of some unsigned type.