-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Compiler error: call to 'print_to_stream' is ambiguous #167
Comments
Ah, interesting, thanks for the report! I detect ARM shenanigans. Time to bust out the RPi and give it a look. |
Thanks for the quick response! But I don't think this is It's probably related to the version of clang that Apple included with Xcode. It used to be that Apple's versioning obscured the underlying LLVM version. But according to the Xcode Wikipedia page, it is using LLVM 13 and clang 13.1.6. So at least for the moment Xcode's versioning and LLVM's match. Have you tested with clang 13? Of course I don't want to discourage you from breaking out your RPi ;-) Those are great little systems. I have way too many of them. |
Yup, I test with clang 13 on my x86-64 dev machine. I think you're right in that it's down to Apple-clang. I've just identified some weirdness and am about to push some tentative fixes :)
Heh, the barrier to entry was low - it's already running 24/7 on my home network as a PiHole instance :D |
Right, I think that's got it. If you're still having issues feel free to re-open this and I'll revisit it again tomorrow. |
That fix works! Thanks so much for fixing this so quickly! It's much better than my hack work around. Hopefully this comment doesn't reopen the issue. On the RPi sub-thread, we've got a PiHole too! And Home Assistant, and OctoPi, and nodejs-poolController (all on their own RPis). Great stuff... |
Environment
toml++ version and/or commit hash:
501a80e
Compiler:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Xcode 13.4.1 (13F100)
C++ standard mode:
Compiler default (i.e.
GCC_C_LANGUAGE_STANDARD
Xcode project env var defined as empty)Target arch:
arm64
Library configuration overrides:
Nothing
Relevant compilation flags:
N/A
Describe the bug
I'm seeing the following compiler error when building most of the examples, including the
parse_benchmark
target:Steps to reproduce (or a small repro code sample)
Open the
tomlplusplus.xcodeproj
Xcode project.Select the
ALL_BUILD
target and build.Additional information
Not pretty, but I've worked around this by type coercing the index value:
The text was updated successfully, but these errors were encountered: