enum string

Jonathan M Davis jmdavisProg at gmx.com
Wed Aug 8 10:27:37 PDT 2012


On Wednesday, August 08, 2012 17:58:17 Namespace wrote:
> On Tuesday, 7 August 2012 at 18:31:41 UTC, Jonathan M Davis wrote:
> > On Tuesday, August 07, 2012 21:14:00 Dmitry Olshansky wrote:
> >> isSomeString!T regression? See enum & std.traits topic in d.D.
> >> Seems like it will work again in 2.061...
> > 
> > Yeah. In 2.060, std.traits doesn't treat enums as their base
> > type for stuff
> > like isSomeString and isIntegral, which is the problem. It's
> > been fixed on
> > github, but it's still broken in 2.060.
> > 
> > - Jonathan M Davis
> 
> Which file must i replace with his version from github to solve
> the problem?

I really wouldn't advise grabbing single files like that. The release was 
recent enough that it may be okay, but in general, that's just asking for 
trouble - especially with something as integral as std.traits. But if you 
really want to, this is the relevant pull request:

https://github.com/D-Programming-Language/phobos/pull/739

std.conv, std.format, std.stdio, and std.traits were all changed as part of 
the fix.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list