Skip to content

Commit

Permalink
Avoid explicit false in static_assert().
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Dec 17, 2024
1 parent 58e5a09 commit 882d20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ template <typename D>
template <typename T>
str_attr_accessor object_api<D>::attr_with_type_hint(const char *key) const {
#if !defined(__cpp_inline_variables)
static_assert(false,
static_assert(!std::is_same<T, T>::value,
"C++17 feature __cpp_inline_variables not available: "
"https://en.cppreference.com/w/cpp/language/static#Static_data_members");
#endif
Expand Down

0 comments on commit 882d20f

Please sign in to comment.