Skip to content

Commit

Permalink
fixup! fix: Avoid -Wgnu-zero-variadic-macro-arguments in C++20 on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
J-M0 committed Nov 27, 2024
1 parent 7b26948 commit 897a0c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,9 @@ struct always_construct_holder {
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) \
namespace detail { \
template <typename type> \
struct always_construct_holder<holder_type> \
: always_construct_holder<void, __VA_OPT__(, ) __VA_ARGS__> {}; \
struct always_construct_holder<holder_type> /* clang-format off */\
: always_construct_holder<void __VA_OPT__(,) __VA_ARGS__> {}; \
/* clang-format on */ \
template <typename type> \
class type_caster<holder_type, enable_if_t<!is_shared_ptr<holder_type>::value>> \
: public type_caster_holder<type, holder_type> {}; \
Expand Down

0 comments on commit 897a0c7

Please sign in to comment.