[Issue 20966] New: std.typecons.Tuple cannot handle non-copyable types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 21 11:16:29 UTC 2020


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

          Issue ID: 20966
           Summary: std.typecons.Tuple cannot handle non-copyable types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: stanislav.blinov at gmail.com

struct S
{
    @disable this(ref typeof(this));
}

void main()
{
    import std.typecons : tuple;
    auto tup = tuple(S.init); // does not compile
}

--


More information about the Digitalmars-d-bugs mailing list