-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
few warnings/errors in copy assignment #2167
Comments
These are the lines in question: 17964 std::is_nothrow_move_constructible<value_t>::value
21647 std::is_nothrow_move_constructible<value_t>::value
24444 is_nothrow_move_constructible<nlohmann::json>::value I am not sure what this warning means. Can you describe how you executed the static anaylsis? |
This is part of our build system on jenkins. |
Unless you see an issue in that code. I am not familiar with noexcept. |
Analyser used is |
The only way this warning can make any sense at all would be if the static analyzer has reached the conclusion that |
The quality of those analyzers may vary for sure! I'm wrapping up this code with preprocessor for now. Feel free to close this issue. |
I think this is a false positive. Closing. |
Hi!
I have integrated your library in our code.
Can you advise regarding the following 3 problems?
Static analysis found 3 issues in your PR (xcode 11's clang-analyzer):
• Use of identical expressions in json.hpp:17964 (in function operator=)
• Use of identical expressions in json.hpp:21647 (in function swap)
• Use of identical expressions in json.hpp:24444 (in function swap)
What do you want to achieve?
Integration without warning or issue if possible.
What have you tried?
I'm starting to investigation removing the warnings in our own copy of the code.
Which compiler and operating system are you using?
Model Identifier: iMac14,2
Processor Speed: 3.70 GHz
Number of Processors: 1
Total Number of Cores: 6
Memory: 64 GB
Which version of the library did you use?
develop
branchcommit 9212590
The text was updated successfully, but these errors were encountered: