why does a constructor with default arguments fail to match, when default construction is disabled?
DanielG
simpletangent at gmail.com
Sat Aug 22 12:22:41 UTC 2026
On Saturday, 22 August 2026 at 09:28:02 UTC, Nick Treleaven wrote:
> There's no need to `@disable this();` for a class with a
> defined constructor,
Right - I was just doing that to shorten my example a bit; your
version with the struct is basically what I was doing when I
encountered the problem.
The delegating constructor is a good workaround, thank you!
And thanks to both of you for responding. I will make a bug
report about this later today.
More information about the Digitalmars-d-learn
mailing list