Skip to content

api change #602

Answered by danielaparker
dmazzella asked this question in Q&A
Discussion options

You must be logged in to vote

I think if I were the author of jwt-cpp, I wouldn't have the types danielaparker_jsoncons::object_type and danielaparker_jsoncons::array_type inherit from jsoncons::json::object and jsoncons::json::array respectively. Rather, I'd define classes danielaparker_jsoncons::object_type and danielaparker_jsoncons::array_type with the interface that I wanted, have them hold a pointer to a jsoncons::json, and implement the danielaparker_jsoncons::object_type and danielaparker_jsoncons::array_type typedefs and functions by delegating to the jsoncons::json.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dmazzella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants