Bug in logger
Mike Parker via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 3 18:00:22 PDT 2015
On Thursday, 3 September 2015 at 23:09:18 UTC, Prudence wrote:
> \..\..\src\phobos\std\experimental\logger\core.d(1784): Error:
> static variable stdLoggerThreadLogger cannot be read at compile
> time
>
> I'm trying to use the logger in a static this. It should work
> or, if it can't, quietly fail(not log anything)... and not
> break the program.
The error tells you you're trying to use something in a
compile-time context that can't be used at compile time. You
*should* get errors in that situation. Can you share the
offending code?
More information about the Digitalmars-d
mailing list