Apply clang-format
This commit is contained in:
parent
f5a240649f
commit
add8ddaeec
|
@ -83,7 +83,9 @@ template <typename Type> using IsCustomType = Traits::Not<IsBuiltInType<Type>>;
|
|||
|
||||
// define trait to check for custom structs/classes which are JSON serializable
|
||||
// NOTE: the check for Traits::IsComplete is required because std::is_base_of fails for incomplete types when using GCC
|
||||
template <typename Type> using IsJsonSerializable = Traits::Any<Traits::Not<Traits::IsComplete<Type>>, std::is_base_of<JsonSerializable<Type>, Type>, AdaptedJsonSerializable<Type>>;
|
||||
template <typename Type>
|
||||
using IsJsonSerializable
|
||||
= Traits::Any<Traits::Not<Traits::IsComplete<Type>>, std::is_base_of<JsonSerializable<Type>, Type>, AdaptedJsonSerializable<Type>>;
|
||||
|
||||
// define trait to check for map or hash
|
||||
template <typename Type>
|
||||
|
|
|
@ -106,7 +106,7 @@ const JsonSerializable<Type> &as(const Type &serializable)
|
|||
* Find out whether this is a compiler bug or a correct error message.
|
||||
*/
|
||||
#define REFLECTIVE_RAPIDJSON_MAKE_JSON_SERIALIZABLE(T) \
|
||||
template <> struct ReflectiveRapidJSON::AdaptedJsonSerializable<T> : Traits::Bool<true> { \
|
||||
template <> struct ReflectiveRapidJSON::AdaptedJsonSerializable<T> : Traits::Bool<true> { \
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue