Skip to content

Commit b3b1055

Browse files
committed
Disable unhelpful clang-tidy warning for templated code
1 parent f971b71 commit b3b1055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/params.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class params_t
5454
m_map.insert_or_assign(std::forward<K>(key), value);
5555
}
5656

57+
// NOLINTBEGIN(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
5758
template <typename K, typename V,
5859
std::enable_if_t<std::is_integral_v<std::remove_reference_t<V>>,
5960
bool> = true>
@@ -71,6 +72,7 @@ class params_t
7172
{
7273
m_map.insert_or_assign(std::forward<K>(key), std::string(value));
7374
}
75+
// NOLINTEND(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
7476

7577
template <typename K>
7678
void remove(K &&key)

0 commit comments

Comments
 (0)