Thread overview
Deprecation: Symbol std.traits.EnumMembers(E) if (is(E == enum)) is not visible from module enumeration because it is privately imported in module range
Feb 27, 2018
Marc
Feb 27, 2018
Marc
Feb 27, 2018
Marc
Feb 28, 2018
Basile B.
February 27, 2018
How do I remove this warning? I got this after the update to v2.079.0-beta.2
February 27, 2018
On Tuesday, 27 February 2018 at 16:07:06 UTC, Marc wrote:
> How do I remove this warning? I got this after the update to v2.079.0-beta.2

this is the line of warning

> import std.range : EnumMembers;
> enum countOfMembers(E) = EnumMembers!E.length;

February 27, 2018
I just realized I posted on wrong area. Sorry guys. I can't move this to the learn area, right?
February 28, 2018
On Tuesday, 27 February 2018 at 16:08:02 UTC, Marc wrote:
> On Tuesday, 27 February 2018 at 16:07:06 UTC, Marc wrote:
>> How do I remove this warning? I got this after the update to v2.079.0-beta.2
>
> this is the line of warning
>
>> import std.range : EnumMembers;
>> enum countOfMembers(E) = EnumMembers!E.length;

you imported the wrong module. EnumMembers in the std.traits.

import std.traits : EnumMembers
enum countOfMembers(E) = EnumMembers!E.length;