March 19, 2017 [Issue 8115] Templated default constructor not called | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8115 Alexey Kulentsov <crimaniak@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crimaniak@gmail.com --- Comment #1 from Alexey Kulentsov <crimaniak@gmail.com> --- templated constructor this(A...)(A) is not matched for empty argument list, for both structs and classes, tested on DMD64 D Compiler v2.073.0 -- |
December 01, 2022 [Issue 8115] Templated default constructor not called | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8115 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |INVALID --- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> --- Default constructors are not allowed for structs, therefore the templated one is only going to get matched once you provide at least one argument. This is the correct behavior. -- |
Copyright © 1999-2021 by the D Language Foundation