Skip to content

Commit

Permalink
Add front() to jsoncons array_type
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-mohamed-khallaf committed Sep 29, 2024
1 parent 5e9c3f6 commit feaca3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/jwt-cpp/traits/danielaparker-jsoncons/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ namespace jwt {
return 0;
}
};
using array_type = json::array;
class array_type : public json::array {
public:
value_type& front() { return this->operator[](0U); }

value_type const& front() const { return this->operator[](0U); }
};
using string_type = std::string; // current limitation of traits implementation
using number_type = double;
using integer_type = int64_t;
Expand Down

0 comments on commit feaca3c

Please sign in to comment.