[Issue 8115] Templated default constructor not called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 1 13:33:48 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from RazvanN <razvan.nitu1305 at 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.

--


More information about the Digitalmars-d-bugs mailing list