Deprecation: Symbol std.traits.EnumMembers(E) if (is(E == enum)) is not visible from module enumeration because it is privately imported in module range

Basile B. b2.temp at gmx.com
Wed Feb 28 03:56:30 UTC 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;


More information about the Digitalmars-d-debugger mailing list