Default initialization of structs?
Johan Engelen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 17 05:26:37 PDT 2016
On Friday, 17 June 2016 at 10:50:55 UTC, Gary Willoughby wrote:
> I have a struct where I need to perform default initialization
> of some members but the compiler doesn't allow to define a
> default constructor which allow optional arguments.
This is a fairly recent change (2.068->2.069 or 2.070), so if you
browse the release notes you may be able to figure out exactly
why this is not allowed.
-Johan
More information about the Digitalmars-d-learn
mailing list