[D-runtime] Odd time.di error in 2.055
Jonathan M Davis
jmdavisProg at gmx.com
Sun Oct 16 13:35:03 PDT 2011
On Sunday, October 16, 2011 15:10:20 Alex wrote:
> Hey folks,
>
> Has anyone seen this before?
>
> /usr/local/include/d2/core/time.di(253): Error: template
> core.time.TickDuration.to(string units,T) if ((units == "seconds" ||
> units == "msecs" || units == "usecs" || units == "hnsecs" || units ==
> "nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) does not match
> any function template declaration
> /usr/local/include/d2/core/time.di(253): Error: template
> core.time.TickDuration.to(string units,T) if ((units == "seconds" ||
> units == "msecs" || units == "usecs" || units == "hnsecs" || units ==
> "nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) cannot deduce
> template function from argument types !("seconds",long)()
>
> This seems to happen in 2.055 but didn't in previous versions. I'm not
> explicitly using core.time anywhere in my code, so I'm having a lot of
> trouble trying to make an isolated test case. :(
>
> Does anyone have a clue what might be going awry here?
>
> Thanks in advance!
Well, it's kind of hard to figure it out without code which runs into the
problem. Are you using std.datetime anywhere?
- Jonathan M Davis
More information about the D-runtime
mailing list