We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It builds fine without jsoncons, but with jsoncons it errs.
Install jsoncons and build.
0.7.0
Linux
GCC
-- The C compiler identification is GNU 14.2.1 -- The CXX compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenSSL: /usr/lib/libcrypto.so (found suitable version "3.4.0", minimum required is "1.0.1") -- Found nlohmann_json: /usr/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.11.3") -- Found GTest: /usr/lib/cmake/GTest/GTestConfig.cmake (found version "1.15.2") -- Configuring done (1.2s) -- Generating done (0.0s) -- Build files have been written to: /build/jwt-cpp/src/jwt-cpp-0.7.0/build [ 3%] Building CXX object example/CMakeFiles/rsa-create.dir/rsa-create.cpp.o [ 10%] Building CXX object example/CMakeFiles/rsa-verify.dir/rsa-verify.cpp.o [ 10%] Building CXX object example/CMakeFiles/private-claims.dir/private-claims.cpp.o [ 13%] Building CXX object example/CMakeFiles/print-claims.dir/print-claims.cpp.o [ 16%] Building CXX object example/CMakeFiles/partial-claim-verifier.dir/partial-claim-verifier.cpp.o [ 20%] Building CXX object example/CMakeFiles/es256k.dir/es256k.cpp.o [ 23%] Building CXX object example/CMakeFiles/jwks-verify.dir/jwks-verify.cpp.o [ 26%] Linking CXX executable print-claims [ 30%] Linking CXX executable rsa-create [ 33%] Linking CXX executable rsa-verify [ 36%] Linking CXX executable jwks-verify [ 40%] Linking CXX executable es256k [ 43%] Linking CXX executable private-claims [ 43%] Built target rsa-create [ 46%] Building CXX object example/traits/CMakeFiles/danielaparker-jsoncons.dir/danielaparker-jsoncons.cpp.o [ 46%] Built target print-claims [ 50%] Building CXX object example/traits/CMakeFiles/nlohmann-json.dir/nlohmann-json.cpp.o [ 53%] Built target rsa-verify [ 53%] Linking CXX executable partial-claim-verifier [ 56%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/BaseTest.cpp.o [ 56%] Built target jwks-verify [ 56%] Built target es256k [ 63%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/Keys.cpp.o [ 63%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/ClaimTest.cpp.o In file included from /build/jwt-cpp/src/jwt-cpp-0.7.0/example/traits/danielaparker-jsoncons.cpp:1: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h: In static member function ‘static jwt::traits::danielaparker_jsoncons::object_type jwt::traits::danielaparker_jsoncons::as_object(const json&)’: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:83:56: error: ‘const jwt::traits::danielaparker_jsoncons::json’ {aka ‘const class jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >’} has no member named ‘object_value’; did you mean ‘object_range’? 83 | return object_type(val.object_value()); | ^~~~~~~~~~~~ | object_range /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h: In static member function ‘static jwt::traits::danielaparker_jsoncons::array_type jwt::traits::danielaparker_jsoncons::as_array(const json&)’: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:88:44: error: ‘const jwt::traits::danielaparker_jsoncons::json’ {aka ‘const class jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >’} has no member named ‘array_value’; did you mean ‘array_range’? 88 | return val.array_value(); | ^~~~~~~~~~~ | array_range /build/jwt-cpp/src/jwt-cpp-0.7.0/example/traits/danielaparker-jsoncons.cpp: In function ‘int main()’: /build/jwt-cpp/src/jwt-cpp-0.7.0/example/traits/danielaparker-jsoncons.cpp:31:70: error: call of overloaded ‘set_payload_claim(const char [6], <brace-enclosed initializer list>)’ is ambiguous 20 | const auto token = jwt::create<traits>() | ~~~~~~~~~~~~~~~~~~~~~ 21 | .set_type("JWT") | ~~~~~~~~~~~~~~~~ 22 | .set_issuer("auth.mydomain.io") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23 | .set_audience("mydomain.io") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 | .set_issued_at(time) | ~~~~~~~~~~~~~~~~~~~~ 25 | .set_not_before(time) | ~~~~~~~~~~~~~~~~~~~~~ 26 | .set_expires_at(time + min{2} + sec{15}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 27 | .set_payload_claim("boolean", true) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28 | .set_payload_claim("integer", 12345) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29 | .set_payload_claim("precision", 12.3456789) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | .set_payload_claim("strings", list) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | .set_payload_claim("array", {big_numbers.begin(), big_numbers.end()}) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:4: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/jwt.h:2667:26: note: candidate: ‘jwt::builder<json_traits>& jwt::builder<json_traits>::set_payload_claim(const typename json_traits::string_type&, typename json_traits::value_type) [with json_traits = jwt::traits::danielaparker_jsoncons; typename json_traits::string_type = std::__cxx11::basic_string<char>; typename json_traits::value_type = jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >]’ 2667 | builder& set_payload_claim(const typename json_traits::string_type& id, typename json_traits::value_type c) { | ^~~~~~~~~~~~~~~~~ /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/jwt.h:2677:26: note: candidate: ‘jwt::builder<json_traits>& jwt::builder<json_traits>::set_payload_claim(const typename json_traits::string_type&, jwt::basic_claim<json_traits>) [with json_traits = jwt::traits::danielaparker_jsoncons; typename json_traits::string_type = std::__cxx11::basic_string<char>]’ 2677 | builder& set_payload_claim(const typename json_traits::string_type& id, basic_claim<json_traits> c) { | ^~~~~~~~~~~~~~~~~ [ 63%] Built target private-claims [ 66%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/HelperTest.cpp.o [ 70%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/TestMain.cpp.o [ 73%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/TokenFormatTest.cpp.o make[2]: *** [example/traits/CMakeFiles/danielaparker-jsoncons.dir/build.make:76: example/traits/CMakeFiles/danielaparker-jsoncons.dir/danielaparker-jsoncons.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:329: example/traits/CMakeFiles/danielaparker-jsoncons.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 76%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/TokenTest.cpp.o [ 80%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/JwksTest.cpp.o [ 83%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/OpenSSLErrorTest.cpp.o [ 86%] Linking CXX executable nlohmann-json [ 90%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/traits/NlohmannTest.cpp.o [ 93%] Building CXX object tests/CMakeFiles/jwt-cpp-test.dir/traits/JsonconsTest.cpp.o [ 93%] Built target partial-claim-verifier In file included from /build/jwt-cpp/src/jwt-cpp-0.7.0/tests/traits/JsonconsTest.cpp:1: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h: In static member function ‘static jwt::traits::danielaparker_jsoncons::object_type jwt::traits::danielaparker_jsoncons::as_object(const json&)’: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:83:56: error: ‘const jwt::traits::danielaparker_jsoncons::json’ {aka ‘const class jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >’} has no member named ‘object_value’; did you mean ‘object_range’? 83 | return object_type(val.object_value()); | ^~~~~~~~~~~~ | object_range /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h: In static member function ‘static jwt::traits::danielaparker_jsoncons::array_type jwt::traits::danielaparker_jsoncons::as_array(const json&)’: /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:88:44: error: ‘const jwt::traits::danielaparker_jsoncons::json’ {aka ‘const class jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >’} has no member named ‘array_value’; did you mean ‘array_range’? 88 | return val.array_value(); | ^~~~~~~~~~~ | array_range [ 93%] Built target nlohmann-json In file included from /usr/include/jsoncons/basic_json.hpp:30, from /usr/include/jsoncons/json.hpp:10, from /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:6: /usr/include/jsoncons/json_object.hpp: In instantiation of ‘jsoncons::sorted_json_object<KeyT, Json, SequenceContainer>::sorted_json_object(InputIt, InputIt) [with InputIt = __gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >; KeyT = std::__cxx11::basic_string<char>; Json = jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >; SequenceContainer = std::vector]’: /usr/include/c++/14.2.1/bits/new_allocator.h:191:4: required from ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector>; _Args = {__gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&, __gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&}; _Tp = jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector>]’ 191 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.1/bits/alloc_traits.h:534:17: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector>; _Args = {__gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&, __gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&}; _Tp = jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector>; allocator_type = std::allocator<jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector> >]’ 534 | __a.construct(__p, std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/jsoncons/basic_json.hpp:1589:70: required from ‘typename jsoncons::basic_json<CharT, Policy, Allocator>::object_storage::pointer jsoncons::basic_json<CharT, Policy, Allocator>::create_object(const allocator_type&, Args&& ...) [with Args = {__gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&, __gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >&}; CharT = char; Policy = jsoncons::sorted_policy; Allocator = std::allocator<char>; typename object_storage::pointer = jsoncons::sorted_json_object<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >, std::vector>*; allocator_type = std::allocator<char>]’ 1589 | std::allocator_traits<stor_allocator_type>::construct(stor_alloc, extension_traits::to_plain_pointer(ptr), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1590 | std::forward<Args>(args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/jsoncons/basic_json.hpp:2809:37: required from ‘jsoncons::basic_json<CharT, Policy, Allocator>::basic_json(jsoncons::json_object_arg_t, InputIt, InputIt, jsoncons::semantic_tag, const Allocator&) [with InputIt = __gnu_cxx::__normal_iterator<const jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >*, std::vector<jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >, std::allocator<jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > > > > >; CharT = char; Policy = jsoncons::sorted_policy; Allocator = std::allocator<char>]’ 2809 | auto ptr = create_object(alloc, first, last); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/jsoncons/json_type_traits.hpp:930:18: required from ‘static Json jsoncons::json_type_traits<Json, T, typename std::enable_if<((((! jsoncons::is_json_type_traits_declared<T>::value) && jsoncons::extension_traits::is_map_like<T>::value) && jsoncons::extension_traits::is_constructible_from_const_pointer_and_size<typename T::key_type>::value) && jsoncons::is_json_type_traits_specialized<Json, typename T::mapped_type>::value)>::type>::to_json(const T&) [with Json = jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> >; T = jwt::traits::danielaparker_jsoncons::object_type]’ 930 | Json j(json_object_arg, val.begin(), val.end()); | ^ /usr/include/jsoncons/basic_json.hpp:2908:65: required from ‘jsoncons::basic_json<CharT, Policy, Allocator>::basic_json(const T&) [with T = jwt::traits::danielaparker_jsoncons::object_type; <template-parameter-2-2> = void; CharT = char; Policy = jsoncons::sorted_policy; Allocator = std::allocator<char>]’ 2908 | : basic_json(json_type_traits<basic_json,T>::to_json(val)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/jwt.h:2829:76: required from ‘typename json_traits::string_type jwt::builder<json_traits>::sign(const Algo&, Encode, std::error_code&) const [with Algo = jwt::algorithm::none; Encode = jwt::builder<jwt::traits::danielaparker_jsoncons>::sign<jwt::algorithm::none>(const jwt::algorithm::none&, std::error_code&) const::<lambda(const jwt::traits::danielaparker_jsoncons::string_type&)>; json_traits = jwt::traits::danielaparker_jsoncons; typename json_traits::string_type = std::__cxx11::basic_string<char>]’ 2829 | const auto header = encode(json_traits::serialize(typename json_traits::value_type(obj_header))); | ^~~~~~~~~~~~~~~~~~~~~~ /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/jwt.h:2850:15: required from ‘typename json_traits::string_type jwt::builder<json_traits>::sign(const Algo&, std::error_code&) const [with Algo = jwt::algorithm::none; json_traits = jwt::traits::danielaparker_jsoncons; typename json_traits::string_type = std::__cxx11::basic_string<char>]’ 2850 | return sign( | ~~~~^ 2851 | algo, | ~~~~~ 2852 | [](const typename json_traits::string_type& data) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2853 | return base::trim<alphabet::base64url>(base::encode<alphabet::base64url>(data)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2854 | }, | ~~ 2855 | ec); | ~~~ /build/jwt-cpp/src/jwt-cpp-0.7.0/include/jwt-cpp/jwt.h:2805:19: required from ‘typename json_traits::string_type jwt::builder<json_traits>::sign(const Algo&) const [with Algo = jwt::algorithm::none; json_traits = jwt::traits::danielaparker_jsoncons; typename json_traits::string_type = std::__cxx11::basic_string<char>]’ 2805 | auto res = sign(algo, ec); | ~~~~^~~~~~~~~~ /build/jwt-cpp/src/jwt-cpp-0.7.0/tests/traits/JsonconsTest.cpp:47:9: required from here 45 | jwt::create<jwt::traits::danielaparker_jsoncons>() | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 46 | .set_payload_claim("test", jwt::basic_claim<jwt::traits::danielaparker_jsoncons>(vect.begin(), vect.end())) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 47 | .sign(jwt::algorithm::none{}); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/jsoncons/json_object.hpp:367:51: error: ‘const class jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >’ has no member named ‘first’ 367 | members_.emplace_back(key_type(s->first,get_allocator()), s->second); | ~~~^~~~~ /usr/include/jsoncons/json_object.hpp:367:78: error: ‘const class jsoncons::key_value<std::__cxx11::basic_string<char>, jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator<char> > >’ has no member named ‘second’ 367 | members_.emplace_back(key_type(s->first,get_allocator()), s->second); | ~~~^~~~~~ make[2]: *** [tests/CMakeFiles/jwt-cpp-test.dir/build.make:216: tests/CMakeFiles/jwt-cpp-test.dir/traits/JsonconsTest.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:381: tests/CMakeFiles/jwt-cpp-test.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
It builds fine without jsoncons, but with jsoncons it errs.
How To Reproduce?
Install jsoncons and build.
Version
0.7.0
What OS are you seeing the problem on?
Linux
What compiler are you seeing the problem on?
GCC
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: