Skip to content

Commit

Permalink
Use std::decay
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Mohamed <[email protected]>
  • Loading branch information
omar-mohamed-khallaf committed Sep 30, 2024
1 parent 4597a64 commit 4fe8d5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2459,9 +2459,7 @@ namespace jwt {
struct is_valid_json_array {
template<typename T>
using value_type_t = typename T::value_type;
using front_return_type = decltype(std::declval<array_type>().front());
using front_base_type =
typename std::remove_cv<typename std::remove_reference<front_return_type>::type>::type;
using front_base_type = typename std::decay<decltype(std::declval<array_type>().front())>::type;

static constexpr auto value = std::is_constructible<value_type, array_type>::value &&
is_iterable<array_type>::value &&
Expand Down

0 comments on commit 4fe8d5f

Please sign in to comment.