www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - Deprecation: Symbol std.traits.EnumMembers(E) if (is(E == enum)) is

reply Marc <jckj33 gmail.com> writes:
How do I remove this warning? I got this after the update to 
v2.079.0-beta.2
Feb 27 2018
parent reply Marc <jckj33 gmail.com> writes:
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;
Feb 27 2018
next sibling parent Marc <jckj33 gmail.com> writes:
I just realized I posted on wrong area. Sorry guys. I can't move 
this to the learn area, right?
Feb 27 2018
prev sibling parent Basile B. <b2.temp gmx.com> writes:
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;
Feb 27 2018