October 18, 2011 [Issue 6824] New: core.time.TickDuration.to template problem | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6824 Summary: core.time.TickDuration.to template problem Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-10-18 03:57:38 PDT --- This code: import std.datetime: StopWatch; void main() { StopWatch sw; auto n = sw.peek().nsecs; } Compiled with: dmd -O -release -inline -noboundscheck test.d using DMD 2.056head gives: ...\dmd2\windows\bin\..\..\src\druntime\import\core\time.di(262): 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 ...\dmd2\windows\bin\..\..\src\druntime\import\core\time.di(262): 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)() -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 18, 2011 [Issue 6824] core.time.TickDuration.to template problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6824 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jmdavisProg@gmx.com Resolution| |DUPLICATE --- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-10-18 08:14:08 PDT --- *** This issue has been marked as a duplicate of issue 6502 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation