fix void_t for older compilers

parent eb30ff06
...@@ -4,7 +4,10 @@ namespace nlohmann ...@@ -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 ...@@ -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;
} }
} }
......
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