-
-
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
Ambiguous call to overloaded function #2210
Comments
Is EASTL somehow available to reproduce this locally? |
Yes, it's available here: |
Thanks! Can you also provide a small self-contained example? |
So assuming you've got EASTL headers available, this guy should fail to compile (disregarding here that
but adding You shouldn't have to compile EASTL to see the error. I originally wanted to have the json using directive use only EASTL containers, but I had problems with getting json to work with EASTL's map and vector, so I've been using it with std versions of those containers for the past few months and it's been working. |
Looks like Catch2 also hit this: Sounds like it might be EASTL bug, which they aren't inclined to fix (cf electronicarts/EASTL#73 "std interop isn't a heavily used feature" or electronicarts/EASTL#356). |
I wouldn't say it's an EASTL bug really. Since EASTL is intended to provide a complete replacement of std's containers, iterators, and algorithms, it's not really surprising (or even expected really) that they would provide std interop. It would be a drag if, in the end, there's all this template machinery in place to allow for implementations other than std, but in practice it doesn't work because ADL isn't able to select a "preferred" option from the two choices. If there was some way I could work around this locally, with a little extra code or whatever, I'd be cool with that. This does seem like a weird situation though, need to think on this... |
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. |
I'm using json object with Electronic Arts' EASTL library, just like in #2059, and after a recent json update, I get:
It seems to be having a problem here (in input_adapters.hpp):
I worked around the issue locally by just adding std::
return input_adapter(std::begin(container), std::end(container));
but doesn't seem like I should've had to do that?
I've got json commit 7444c7, Windows 10, MSVC 2019.
The text was updated successfully, but these errors were encountered: