--- Comment #2 from Andrej Mitrovic <> 2012-01-04 
07:17:05 PST ---
This has now changed to a template error:

import std.conv;

void main()
    char[9] statCArr = "blablabla";
    auto res1 = to!(char[])(statCArr);

D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\conv.d(237): Error: template
std.conv.toImpl(T,S) if (isImplicitlyConvertible!(S,T)) toImpl(T,S) if
(isImplicitlyConvertible!(S,T)) matches more than one template declaration,
D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\conv.d(245):toImpl(T,S) if
(isImplicitlyConvertible!(S,T)) and
D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\conv.d(350):toImpl(T,S) if

A simple workaround is to pass a slice:
    auto res1 = to!(char[])(statCArr[]);

But since to() seems to have specializations for static arrays I'll leave this

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to