diff --git a/include/nlohmann/detail/view/serializer.hpp b/include/nlohmann/detail/view/serializer.hpp index 4ec902421..d450ecfd3 100644 --- a/include/nlohmann/detail/view/serializer.hpp +++ b/include/nlohmann/detail/view/serializer.hpp @@ -71,7 +71,7 @@ class output_buffer /// a string literal, without its terminating NUL template - NLOHMANN_VIEW_ALWAYS_INLINE void put(const char (&s)[N]) + NLOHMANN_VIEW_ALWAYS_INLINE void put(const char (&s)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays) { put(s, N - 1); } diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index dae153bb9..c41010407 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -3415,7 +3415,7 @@ class output_buffer /// a string literal, without its terminating NUL template - NLOHMANN_VIEW_ALWAYS_INLINE void put(const char (&s)[N]) + NLOHMANN_VIEW_ALWAYS_INLINE void put(const char (&s)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays) { put(s, N - 1); }