mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-05 20:57:39 +01:00
Merge pull request #670 from redboltz/fix_variadic_template
Added missing variadic template parameters.
This commit is contained in:
@@ -59,7 +59,7 @@ private:
|
|||||||
decltype(adaptor::as<U>()(std::declval<msgpack::object>())),
|
decltype(adaptor::as<U>()(std::declval<msgpack::object>())),
|
||||||
T
|
T
|
||||||
>::type;
|
>::type;
|
||||||
template <typename>
|
template <typename...>
|
||||||
static std::false_type check(...);
|
static std::false_type check(...);
|
||||||
public:
|
public:
|
||||||
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ private:
|
|||||||
v1::has_as<U>::value,
|
v1::has_as<U>::value,
|
||||||
std::true_type
|
std::true_type
|
||||||
>::type;
|
>::type;
|
||||||
template <typename>
|
template <typename...>
|
||||||
static std::false_type check(...);
|
static std::false_type check(...);
|
||||||
public:
|
public:
|
||||||
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ private:
|
|||||||
v1::has_as<U>::value,
|
v1::has_as<U>::value,
|
||||||
std::true_type
|
std::true_type
|
||||||
>::type;
|
>::type;
|
||||||
template <typename>
|
template <typename...>
|
||||||
static std::false_type check(...);
|
static std::false_type check(...);
|
||||||
public:
|
public:
|
||||||
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
using type = decltype(check<T>(MSGPACK_NULLPTR));
|
||||||
|
|||||||
Reference in New Issue
Block a user