[Issue 11704] std.conv.to fails from string to std.typecons.Typedef

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 1 01:06:44 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=11704

--- Comment #2 from kdevel <kdevel at vogtner.de> ---
Same error opposite direction:

void main ()
{
   import std.typecons;
   import std.conv;

   alias vstring = Typedef!string;
   auto v = 3.to!vstring;
}

../../src/phobos/std/conv.d(210): Error: none of the overloads of template
`std.conv.toImpl` are callable using argument types `!(Typedef!(string, null,
null))(int)`
[...]

--


More information about the Digitalmars-d-bugs mailing list