www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
          Reporter: stanislav.blinov gmail.com

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

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

--
Jun 21