json/include/nlohmann/detail/json_custom_base_class.hpp
Raphael Grimm f43c6b433d Document what the include of type_traits is used for
Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com>
2022-08-18 23:12:50 +02:00

21 lines
408 B
C++

#pragma once
#include <type_traits> // conditional, is_same
namespace nlohmann
{
namespace detail
{
struct json_default_base {};
template<class T>
using json_base_class = typename std::conditional <
std::is_same<T, void>::value,
json_default_base,
T
>::type;
} // namespace detail
} // namespace nlohmann