www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17443] New: std.traits.ParameterDefaults fails for parameters


          Issue ID: 17443
           Summary: std.traits.ParameterDefaults fails for parameters with
                     disabled this(this)
           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 NonCopyable
     disable this(this);

void foo(NonCopyable p = NonCopyable.init) {}

void main()
    import std.traits;
    alias defaults = ParameterDefaults!foo;
    // Error: struct NonCopyable is not copyable because it is annotated with

May 27 2017