Skip to content

danielaparker::jsoncons traits fail with version >=1.5.0 of jsoncons #427

@olifre

Description

@olifre

What happened?

Upstream has deprecated the type names int64_value etc. in 1.5.0, they are now just int64, leading to errors such as:

/var/tmp/portage/dev-cpp/jwt-cpp-0.7.2/work/jwt-cpp-0.7.2/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:125:72: error: ‘bool_value’ is not a member of ‘jsoncons::json_type’
  125 |                                 if (val.type() == jsoncons::json_type::bool_value) return type::boolean;
      |                                                                        ^~~~~~~~~~
/var/tmp/portage/dev-cpp/jwt-cpp-0.7.2/work/jwt-cpp-0.7.2/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:126:72: error: ‘int64_value’ is not a member of ‘jsoncons::json_type’
  126 |                                 if (val.type() == jsoncons::json_type::int64_value) return type::integer;
      |                                                                        ^~~~~~~~~~~

Relevant upstream commit:
danielaparker/jsoncons@f070f95

How To Reproduce?

Use jsoncons >= 1.5.0.

Version

0.7.2

What OS are you seeing the problem on?

Linux

What compiler are you seeing the problem on?

GCC

Relevant log output

/var/tmp/portage/dev-cpp/jwt-cpp-0.7.2/work/jwt-cpp-0.7.2/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:125:72: error: ‘bool_value’ is not a member of ‘jsoncons::json_type’
  125 |                                 if (val.type() == jsoncons::json_type::bool_value) return type::boolean;
      |                                                                        ^~~~~~~~~~
/var/tmp/portage/dev-cpp/jwt-cpp-0.7.2/work/jwt-cpp-0.7.2/include/jwt-cpp/traits/danielaparker-jsoncons/traits.h:126:72: error: ‘int64_value’ is not a member of ‘jsoncons::json_type’
  126 |                                 if (val.type() == jsoncons::json_type::int64_value) return type::integer;
      |                                                                        ^~~~~~~~~~~

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions