mirror of
https://github.com/nlohmann/json
synced 2024-11-26 13:50:07 +00:00
fix void_t for older compilers
This commit is contained in:
parent
eb30ff0615
commit
1ea8cd128c
@ -4,7 +4,10 @@ namespace nlohmann
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
template <typename...>
|
||||
using void_t = void;
|
||||
template <typename ...Ts> struct make_void
|
||||
{
|
||||
using type = void;
|
||||
};
|
||||
template <typename ...Ts> using void_t = typename make_void<Ts...>::type;
|
||||
}
|
||||
}
|
||||
|
@ -3572,8 +3572,11 @@ namespace nlohmann
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
template <typename...>
|
||||
using void_t = void;
|
||||
template <typename ...Ts> struct make_void
|
||||
{
|
||||
using type = void;
|
||||
};
|
||||
template <typename ...Ts> using void_t = typename make_void<Ts...>::type;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user