Compiler issue with Xcode 15.3 & C++20
Closed this issue · 27 comments
I just tried to compile and test the library with C++20 without issues.
Based on the compiler error, it looks like you're not using it properly.
Can you show the code which calls DictionaryFromMap
?
(it would be great if you could avoid posting code screenshots, by the way)
Just post the code calling into DictionaryFromMap
here...
I don't think these are the lines causing your issue.
I can compile this code with Xcode 15.3 and C++ 20 without errors.
There's also a unit test for that case:
Objective-CPP/Unit-Tests/Test-Map.mm
Line 181 in 05e2775
Based on the compiler error you showed, you're calling MapFromDictionary
with 3 arguments.
Please show the relevant code.
Go to the build log, click on the failed build action, expand the message, as shown in the screenshot.
It will give the information I need.
I just tested with iOS, no problem with C++20.
Which version of Objective-CPP are you using?
Please format code when you post…
Your compiler output is odd.
I guess you're not using the provided library but instead compiling the sources directly into your project.
There's no reason for your changes. The whole library builds fine with C++20 as is.
It means your Xcode project is not set-up properly.
Closing...
Feel free to reopen if you still have issues.