Thread overview
[Issue 11704] std.conv.to fails from string to std.typecons.Typedef
Apr 22, 2014
Andrej Mitrovic
Dec 17, 2022
Iain Buclaw
Sep 01
kdevel
Sep 01
kdevel
April 22, 2014
https://issues.dlang.org/show_bug.cgi?id=11704

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
This is really just one specific case of Typedef not being handled. I bet a lot of Phobos code simply doesn't work with Typedef. I'm not sure whether it's worth adding support, it might open a can of worms (or enhancement requests..).

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11704

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

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

kdevel <kdevel@vogtner.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdevel@vogtner.de

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

--- Comment #2 from kdevel <kdevel@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)`
[...]

--