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

[Example Compile Error] Asymptotic complexity with a lambda function #719

Closed
ghost opened this issue Nov 15, 2018 · 0 comments
Closed

[Example Compile Error] Asymptotic complexity with a lambda function #719

ghost opened this issue Nov 15, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 15, 2018

In README.md the following line of code

BENCHMARK(BM_StringCompare)->RangeMultiplier(2)->Range(1<<10, 1<<18)->Complexity([](int n)->double{return n; });

should be changed to use auto instead of int

BENCHMARK(BM_StringCompare)->RangeMultiplier(2)->Range(1<<10, 1<<18)->Complexity([](auto n)->double{return n; });
@ghost ghost changed the title Asymptotic complexity example with a lambda function fails to compile [Example Compile Error] Asymptotic complexity with a lambda function Nov 15, 2018
EricWF pushed a commit to efcs/benchmark that referenced this issue Nov 29, 2018
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

0 participants