-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
puzzled implicit conversions #1692
Comments
Note that implicit conversions from JSON are discouraged, you should avoid Based on the result of In |
Thanks very much. |
For what it's worth, I cannot even compile the line std::cout << lnum - a["num1"] << std::endl; in Clang
|
My project is in visual studio 2017 and build with vs defaul tool msbuild. I didn't test with clang. Fail also with gcc/g++ when I test. It is only OK complile with vs. |
How to do for the bug. Should I close it? |
Ain't that some kind of operator precedence problem in combination with implicit conversions? Putting parenthesis around the minus operation in the stream operation makes the execution order not collide wirh stream operator overloads. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
vs2017 c++17 windows7 64 develop branch
could you tell me why
lnum - a["num1"]
is not same aslnum - a["num1"].get<long long>()
butcout << a["num1"] << endl;
is correctThe text was updated successfully, but these errors were encountered: