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:
In file included from ~/Sources/third_party/toml/tomlplusplus/tomlplusplus/examples/toml_to_json_transcoder.cpp:9:
In file included from ~/Sources/third_party/toml/tomlplusplus/tomlplusplus/include/toml++/toml.h:68:
~/Sources/third_party/toml/tomlplusplus/tomlplusplus/include/toml++/impl/path.inl:242:5: error: call to 'print_to_stream' is ambiguous
impl::print_to_stream(os, component.index());
^~~~~~~~~~~~~~~~~~~~~
Steps to reproduce (or a small repro code sample)
- Generate the project with the examples enabled:
cmake -B ../build --install-prefix=$HOME/Sources/third_party/toml/tomlplusplus/install -G Xcode -D BUILD_EXAMPLES=ON
-
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:
impl::print_to_stream(os, (uint64_t)component.index());
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_STANDARDXcode 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_benchmarktarget:Steps to reproduce (or a small repro code sample)
Open the
tomlplusplus.xcodeprojXcode project.Select the
ALL_BUILDtarget and build.Additional information
Not pretty, but I've worked around this by type coercing the index value: