diff --git a/include/pybind11/detail/type_caster_odr_guard.h b/include/pybind11/detail/type_caster_odr_guard.h index b79f927d3..b8bf87453 100644 --- a/include/pybind11/detail/type_caster_odr_guard.h +++ b/include/pybind11/detail/type_caster_odr_guard.h @@ -107,7 +107,7 @@ constexpr tu_local_descr 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