enums and std.traits

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Aug 4 14:52:59 PDT 2012


On 8/4/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> snip

I agree with you. isSomeString!T predicate failing maybe isn't as
serious as "!isSomeString!T" passing and ending up with wrong results.
At the very least this should have been discussed about before the
change.

And why should a template care whether what's passed is an enum or
not? This complicates code by having to write multiple constraints or
multiple templates just to handle enums as a special case.


More information about the Digitalmars-d mailing list