Ambiguous Error: json.hpp version 3.11.3 #4431
Replies: 3 comments 2 replies
-
|
More error logs: |
Beta Was this translation helpful? Give feedback.
-
|
using namespace std::rel_ops; |
Beta Was this translation helpful? Give feedback.
-
|
Which compiler and OS are you using? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
json.hpp:7108:58: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [-Werror]
7108 | for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
I get the above error when I include json.hpp in to my project. Any idea of how to solve this? I am fairly new to C++
Beta Was this translation helpful? Give feedback.
All reactions