digitalmars.D.bugs - [Issue 17443] New: std.traits.ParameterDefaults fails for parameters
- via Digitalmars-d-bugs (27/27) May 27 2017 https://issues.dlang.org/show_bug.cgi?id=17443
https://issues.dlang.org/show_bug.cgi?id=17443 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 disable. } --
May 27 2017