Skip to content

Commit

Permalink
compile error with master #37
Browse files Browse the repository at this point in the history
  • Loading branch information
arun11299 committed Nov 20, 2018
1 parent fe2e061 commit 1cbc5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/jwt/impl/jwt.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ jwt_signature::get_verify_algorithm_impl(const jwt_header& hdr) const noexcept


//
template <typename First, typename... Rest>
template <typename First, typename... Rest,
typename SFINAE_COND>
jwt_object::jwt_object(
std::enable_if_t<detail::meta::is_parameter_concept<First>::value, First>&& first,
Rest&&... rest)
First&& first, Rest&&... rest)
{
static_assert (detail::meta::is_parameter_concept<First>::value &&
detail::meta::are_all_params<Rest...>::value,
Expand Down
5 changes: 3 additions & 2 deletions include/jwt/jwt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename First, typename... Rest>
jwt_object(std::enable_if_t<detail::meta::is_parameter_concept<First>::value, First>&& first, Rest&&... rest);
template <typename First, typename... Rest,
typename=std::enable_if_t<detail::meta::is_parameter_concept<First>::value>>
jwt_object(First&& first, Rest&&... rest);

public: // Exposed static APIs
/**
Expand Down

0 comments on commit 1cbc5eb

Please sign in to comment.