Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAmbiguous equality/inequality operators under C++20 #631
Comments
|
There's a handful of core-issues against C++20 about this, I'm hopeful they will fix this situation in some way. The alternative I think is to add non-const versions of those comparisons to rapidjson (as this is an issue with that library). |
groscoe2
added a commit
to groscoe2/cereal
that referenced
this issue
May 28, 2020
Based on Tencent/rapidjson#1679 Addresses USCiLab#631
|
Do the above references to this issue suggest that grabbing an updated version of rapidjson would solve this problem? |
relay-everything
added a commit
to relay-everything/cereal
that referenced
this issue
Sep 8, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running
clang++ -x c++ -std=c++2a -isystem include include/cereal/archives/json.hppwith a trunk version of Clang in the root of the cereal repo, gives:AFAIU, the reworking of comparisons in C++20 means that the new language must now reject some previously acceptable code for causing ambiguities between comparison operators that the compiler could consider (eg see discussion here https://bugs.llvm.org/show_bug.cgi?id=43765#c4 ).