Compilation issue in VS2017 #12

This commit is contained in:
Arun M 2018-05-02 21:51:33 +05:30
parent 2cb65f231a
commit aefef6dce2
2 changed files with 7 additions and 6 deletions

View file

@ -290,13 +290,14 @@ jwt_signature::get_verify_algorithm_impl(const jwt_header& hdr) const noexcept
//
template <typename... Args>
jwt_object::jwt_object(Args&&... args)
template <typename First, typename... Rest>
jwt_object::jwt_object(First&& first, Rest&&... rest)
{
static_assert (detail::meta::are_all_params<Args...>::value,
static_assert (detail::meta::is_parameter_concept<First>::value &&
detail::meta::are_all_params<Rest...>::value,
"All constructor argument types must model ParameterConcept");
set_parameters(std::forward<Args>(args)...);
set_parameters(std::forward<First>(first), std::forward<Rest>(rest)...);
}
template <typename Map, typename... Rest>

View file

@ -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 <typename... Args>
jwt_object(Args&&... args);
template <typename First, typename... Rest>
jwt_object(First&& first, Rest&&... rest);
public: // Exposed static APIs
/**