mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-20 01:42:37 +00:00
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:
parent
ec8b8b68c7
commit
21fc6b31c7
@ -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 {}; }
|
constexpr tu_local_descr<0> tu_local_const_name(char const (&)[1]) { return {}; }
|
||||||
|
|
||||||
struct tu_local_no_data_always_false {
|
struct tu_local_no_data_always_false {
|
||||||
operator bool() const noexcept { return false; }
|
explicit operator bool() const noexcept { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user