You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiled with gcc 7.5.0, passing a JSON array to parse returns an array containing the desired array. This is not the same behavior on clang 10.0.0 where the desired array is instead returned.
Please describe the steps to reproduce the issue.
on macOS 10.15.6 with cmake 3.18.1 and brew 2.4.9 in a directory containing the CMakeLists.txt and main.cpp listed below:
What is the issue you have?
When compiled with gcc 7.5.0, passing a JSON array to
parse
returns an array containing the desired array. This is not the same behavior on clang 10.0.0 where the desired array is instead returned.Please describe the steps to reproduce the issue.
on macOS 10.15.6 with cmake 3.18.1 and brew 2.4.9 in a directory containing the CMakeLists.txt and main.cpp listed below:
brew install gcc@7
cmake -S . -B build -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-7
cmake --build build
./build/example
Can you provide a small but working code example?
What is the expected behavior?
[{"pi":3.141}]
And what is the actual behavior instead?
[[{"pi":3.141}]]
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchThe text was updated successfully, but these errors were encountered: