-
-
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
json.hpp:6384:62: error: wrong number of template arguments (1, should be 2) #606
Comments
See #590 |
Thanks. I changed the line to this:
This compiles, but dont know if these to lines are equivalent? The change suggested in the issue linked also compiles for me:
and is closest to the original. |
Changing to "array.operator<" is not equivalent because the array object may not have a member function implementing less-than, it could use a free function in the surrounding namespace, and then this line will fail. The original was better because it works better with either member-< or free-<. I would add parens if you really feel like you need to address this (since it's a compiler bug and the code is "fine" as-is). |
Thanks. I changed it as suggested. |
After upgrading gcc in majnaro, i started getting this error. Does anyone know to remedy it?
The text was updated successfully, but these errors were encountered: