fix void_t for older compilers

parent eb30ff06
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment