Skip to content

Conversation

@maxvdec
Copy link
Contributor

@maxvdec maxvdec commented Mar 8, 2025

The README.md file put a compile example with the flag -std=c++11, and because of the use of new standard library functions, the flag in the compile example had to be changed to -std=c++14, this solving issue: #1943

@google-cla
Copy link

google-cla bot commented Mar 8, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

# Example on linux after running the build steps above. Assumes the
# `benchmark` and `build` directories are under the current directory.
$ g++ mybenchmark.cc -std=c++11 -isystem benchmark/include \
$ g++ mybenchmark.cc -std=c++14 -isystem benchmark/include \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be c++17 to be up to date with the library.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there C++17 features in the header? If so, docs are outdated now too.
By the way, with cxx03 test gone, i guess we want to add a cxx14 test,
to ensure that the header can actually be used with the ${version} standard.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think the header has any C++17 features yet, no, but the door is now open to adding them.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha. Then it certainly might be great to "guard" against that with a test.

@LebedevRI
Copy link
Collaborator

CLA check still seems to be having issues.

@dmah42
Copy link
Member

dmah42 commented Mar 12, 2025

forced a rescan

Copy link
Collaborator

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an improvement over the current incorrect status-quo.

@LebedevRI LebedevRI merged commit 2bf3534 into google:main Mar 12, 2025
84 of 86 checks passed
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

Successfully merging this pull request may close these issues.

3 participants