Mark tu_local_no_data_always_false operator bool as explicit (clang-tidy). See also: https://stackoverflow.com/questions/39995573/when-can-i-use-explicit-operator-bool-without-a-cast

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-22 08:35:57 -07:00
parent ec8b8b68c7
commit 21fc6b31c7

View File

@ -107,7 +107,7 @@ constexpr tu_local_descr<N - 1> tu_local_const_name(char const (&text)[N]) {
constexpr tu_local_descr<0> tu_local_const_name(char const (&)[1]) { return {}; }
struct tu_local_no_data_always_false {
operator bool() const noexcept { return false; }
explicit operator bool() const noexcept { return false; }
};
} // namespace