assert(ValueUser.getValue() == 42);
Like I said it doesn't compile because it can't do CTFE. But
remove static in front of the second assert and it compiles (and
works also during runtime):
- Compile-time evaluation lost in alias this Tommi
- Re: Compile-time evaluation lost in alias this deadalnix
- Re: Compile-time evaluation lost in alias this Tommi
- Re: Compile-time evaluation lost in alias this Tommi
- Re: Compile-time evaluation lost in alias this kenji hara
- Re: Compile-time evaluation lost in alias this Tommi
