On Sunday, 24 May 2020 at 21:43:34 UTC, H. S. Teoh wrote:
On Sun, May 24, 2020 at 09:34:53PM +, jmh530 via
Digitalmars-d-learn wrote:
The following code results in the static assert in the
constructor being triggered, even though I would have thought
no constructor would have been called.
On Sunday, 24 May 2020 at 21:34:53 UTC, jmh530 wrote:
The following code results in the static assert in the
constructor being triggered, even though I would have thought
no constructor would have been called.
static assert is triggered when the code is *compiled*, whether
it is actually run
On Sun, May 24, 2020 at 09:34:53PM +, jmh530 via Digitalmars-d-learn wrote:
> The following code results in the static assert in the constructor
> being triggered, even though I would have thought no constructor would
> have been called. I know that there is an easy fix for this (move the
>