www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21760] New: std.conv.to does not know how to convert a string

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

          Issue ID: 21760
           Summary: std.conv.to does not know how to convert a string to a
                    std.experimental.checkedint.Checked!T
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

---
void main()
{
    import std.experimental.checkedint;
    import std.conv : to;

    // Error: template std.conv.toImpl cannot deduce function from argument
    auto a = to!(Checked!long)("10"); 
}
---

--
Mar 24 2021