mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
fix void_t for older compilers
This commit is contained in:
@ -4,7 +4,10 @@ namespace nlohmann
|
|||||||
{
|
{
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename...>
|
template <typename ...Ts> struct make_void
|
||||||
using void_t = void;
|
{
|
||||||
|
using type = void;
|
||||||
|
};
|
||||||
|
template <typename ...Ts> using void_t = typename make_void<Ts...>::type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3572,8 +3572,11 @@ namespace nlohmann
|
|||||||
{
|
{
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename...>
|
template <typename ...Ts> struct make_void
|
||||||
using void_t = void;
|
{
|
||||||
|
using type = void;
|
||||||
|
};
|
||||||
|
template <typename ...Ts> using void_t = typename make_void<Ts...>::type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user