Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The benchmark example code from README.md fails to compile with recent DMD #194

Open
ssvb opened this issue Dec 4, 2022 · 0 comments
Open

Comments

@ssvb
Copy link

ssvb commented Dec 4, 2022

DMD 2.099.1 fails to compile the benchmark example code from the readme:

Error: undefined identifier `StopWatch`

And after changing import std.datetime; to import std.datetime.stopwatch; the error message becomes:

Error: none of the overloads of template `core.time.to` are callable using argument types `!("msecs", float)(Duration)`

The readme does indeed mention DMD 2.068.0:

Measurements taken on a Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz with 8GB of memory. Compiled with dmd-2.068.0 using -O -release -inline flags.

But maybe updating this example to be usable with a modern compiler version would be useful? Please consider this a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant