Description
When compiling Blaze with MinGW 14.2.0 on Windows, the build fails with an ambiguous constructor error in the sourcemeta_core_jsonpointer component.
Error Location
The error occurs at
- File:
deps/blaze/vendor/core/src/core/jsonpointer/parser.h
- Where: result.emplace_back(internal::parse_index(string, column))
Root Cause
1.The parse_index() function returns a long unsigned int
2.The code attempts to construct a GenericToken with this value
3.The compiler cannot decide between multiple constructors:
GenericToken(const int value) - jsonpointer_token.h
GenericToken(const Index value) where Index is long long unsigned int
GenericToken(const JSON::Char value)
Reproduction
Using MinGW to build with
cmake -Bbuild -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
Description
When compiling Blaze with MinGW 14.2.0 on Windows, the build fails with an ambiguous constructor error in the sourcemeta_core_jsonpointer component.
Error Location
The error occurs at
deps/blaze/vendor/core/src/core/jsonpointer/parser.hRoot Cause
1.The parse_index() function returns a long unsigned int
2.The code attempts to construct a GenericToken with this value
3.The compiler cannot decide between multiple constructors:
GenericToken(const int value)- jsonpointer_token.hGenericToken(const Index value)where Index is long long unsigned intGenericToken(const JSON::Char value)Reproduction
Using MinGW to build with