@@ -2572,7 +2572,9 @@ JSON_HEDLEY_DIAGNOSTIC_POP
25722572 template<typename BasicJsonType> \
25732573 inline void to_json(BasicJsonType& j, const ENUM_TYPE& e) \
25742574 { \
2575+ /* NOLINTNEXTLINE(modernize-type-traits) we use C++11 */ \
25752576 static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!"); \
2577+ /* NOLINTNEXTLINE(modernize-avoid-c-arrays) we don't want to depend on <array> */ \
25762578 static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__; \
25772579 auto it = std::find_if(std::begin(m), std::end(m), \
25782580 [e](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
@@ -2584,7 +2586,9 @@ JSON_HEDLEY_DIAGNOSTIC_POP
25842586 template<typename BasicJsonType> \
25852587 inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \
25862588 { \
2589+ /* NOLINTNEXTLINE(modernize-type-traits) we use C++11 */ \
25872590 static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!"); \
2591+ /* NOLINTNEXTLINE(modernize-avoid-c-arrays) we don't want to depend on <array> */ \
25882592 static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__; \
25892593 auto it = std::find_if(std::begin(m), std::end(m), \
25902594 [&j](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
0 commit comments