From add8ddaeec03c6b4eb0cc7096a3ec734a82229c3 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 17 Nov 2017 22:04:11 +0100 Subject: [PATCH] Apply clang-format --- lib/json/reflector.h | 4 +++- lib/json/serializable.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/json/reflector.h b/lib/json/reflector.h index 18ad0a7..f82dc13 100644 --- a/lib/json/reflector.h +++ b/lib/json/reflector.h @@ -83,7 +83,9 @@ template using IsCustomType = Traits::Not>; // 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 using IsJsonSerializable = Traits::Any>, std::is_base_of, Type>, AdaptedJsonSerializable>; +template +using IsJsonSerializable + = Traits::Any>, std::is_base_of, Type>, AdaptedJsonSerializable>; // define trait to check for map or hash template diff --git a/lib/json/serializable.h b/lib/json/serializable.h index 1820f05..24abcf9 100644 --- a/lib/json/serializable.h +++ b/lib/json/serializable.h @@ -106,7 +106,7 @@ const JsonSerializable &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 : Traits::Bool { \ + template <> struct ReflectiveRapidJSON::AdaptedJsonSerializable : Traits::Bool { \ } /*!