From 4fe8d5f17f0da3359328ed447ef0fc9e83a83248 Mon Sep 17 00:00:00 2001 From: Omar Mohamed Date: Mon, 30 Sep 2024 21:02:38 +0300 Subject: [PATCH] Use std::decay Signed-off-by: Omar Mohamed --- include/jwt-cpp/jwt.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index 3c82a211..41ef6579 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -2459,9 +2459,7 @@ 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; + using front_base_type = typename std::decay().front())>::type; static constexpr auto value = std::is_constructible::value && is_iterable::value &&