We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
warning: use of the 'nodiscard' attribute is a C++17 extension
mac os, cmake, clang
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wfatal-errors -pedantic -fPIC")
there were no this warnings in v3.5.0
nlohmann/json.hpp:13087:5: use warningof: the 'nodiscard' useattribute ofis thea 'nodiscard'C++17 attributeextension is[-Wc++17-extensions] a C++17 extension [-Wc++17-extensions] JSON_NODISCARD JSON_NODISCARD ^ ^
g++ -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.3) Target: x86_64-apple-darwin18.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
develop
tag 3.6.1
The text was updated successfully, but these errors were encountered:
seems duplicate
Sorry, something went wrong.
Duplicate of #1535. Will be part of the 3.6.2 release.
No branches or pull requests
warning: use of the 'nodiscard' attribute is a C++17 extension
mac os, cmake, clang
there were no this warnings in v3.5.0
develop
branch?tag 3.6.1
The text was updated successfully, but these errors were encountered: