From aefef6dce2a9c76297f66b06729ffb62d5432c06 Mon Sep 17 00:00:00 2001 From: Arun M Date: Wed, 2 May 2018 21:51:33 +0530 Subject: [PATCH] Compilation issue in VS2017 #12 --- include/jwt/impl/jwt.ipp | 9 +++++---- include/jwt/jwt.hpp | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/jwt/impl/jwt.ipp b/include/jwt/impl/jwt.ipp index 0ba78a1..b2de1cd 100644 --- a/include/jwt/impl/jwt.ipp +++ b/include/jwt/impl/jwt.ipp @@ -290,13 +290,14 @@ jwt_signature::get_verify_algorithm_impl(const jwt_header& hdr) const noexcept // -template -jwt_object::jwt_object(Args&&... args) +template +jwt_object::jwt_object(First&& first, Rest&&... rest) { - static_assert (detail::meta::are_all_params::value, + static_assert (detail::meta::is_parameter_concept::value && + detail::meta::are_all_params::value, "All constructor argument types must model ParameterConcept"); - set_parameters(std::forward(args)...); + set_parameters(std::forward(first), std::forward(rest)...); } template diff --git a/include/jwt/jwt.hpp b/include/jwt/jwt.hpp index 2e4e527..d627c0f 100644 --- a/include/jwt/jwt.hpp +++ b/include/jwt/jwt.hpp @@ -850,8 +850,8 @@ public: // 'tors * containers which models `MappingConcept` (see `meta::is_mapping_concept`) * to populate header. Not much useful unless JWE is supported. */ - template - jwt_object(Args&&... args); + template + jwt_object(First&& first, Rest&&... rest); public: // Exposed static APIs /**