diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index b18e8a16..3c82a211 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -2459,12 +2459,15 @@ namespace jwt { struct is_valid_json_array { template using value_type_t = typename T::value_type; + using front_return_type = decltype(std::declval().front()); + using front_base_type = + typename std::remove_cv::type>::type; static constexpr auto value = std::is_constructible::value && is_iterable::value && is_detected::value && std::is_same::value && - std::is_member_function_pointer::value; + std::is_same::value; }; template