[Issue 21760] New: std.conv.to does not know how to convert a string to a std.experimental.checkedint.Checked!T

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 24 16:10:52 UTC 2021


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 at puremagic.com
          Reporter: n8sh.secondary at 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"); 
}
---

--


More information about the Digitalmars-d-bugs mailing list