diff --git a/include/jwt/impl/jwt.ipp b/include/jwt/impl/jwt.ipp index e5474e3..5e17936 100644 --- a/include/jwt/impl/jwt.ipp +++ b/include/jwt/impl/jwt.ipp @@ -289,10 +289,10 @@ jwt_signature::get_verify_algorithm_impl(const jwt_header& hdr) const noexcept // -template +template jwt_object::jwt_object( - std::enable_if_t::value, First>&& first, - Rest&&... rest) + First&& first, Rest&&... rest) { static_assert (detail::meta::is_parameter_concept::value && detail::meta::are_all_params::value, diff --git a/include/jwt/jwt.hpp b/include/jwt/jwt.hpp index fbb496e..c96edcb 100644 --- a/include/jwt/jwt.hpp +++ b/include/jwt/jwt.hpp @@ -888,8 +888,9 @@ class jwt_object * containers which models `MappingConcept` (see `meta::is_mapping_concept`) * to populate header. Not much useful unless JWE is supported. */ - template - jwt_object(std::enable_if_t::value, First>&& first, Rest&&... rest); + template ::value>> + jwt_object(First&& first, Rest&&... rest); public: // Exposed static APIs /**