File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -868,12 +868,11 @@ struct always_construct_holder {
868
868
static constexpr bool value = Value;
869
869
};
870
870
871
- PYBIND11_WARNING_PUSH
872
- PYBIND11_WARNING_DISABLE_GCC (" -Wpedantic" )
873
- PYBIND11_WARNING_DISABLE_CLANG(" -Wgnu-zero-variadic-macro-arguments" )
874
871
// / Create a specialization for custom holder types (silently ignores std::shared_ptr)
875
872
#define PYBIND11_DECLARE_HOLDER_TYPE (type, holder_type, ...) \
876
873
PYBIND11_NAMESPACE_BEGIN (PYBIND11_NAMESPACE) \
874
+ PYBIND11_WARNING_DISABLE_GCC(" -Wpedantic" ) \
875
+ PYBIND11_WARNING_DISABLE_CLANG(" -Wgnu-zero-variadic-macro-arguments" ) \
877
876
namespace detail { \
878
877
template <typename type> \
879
878
struct always_construct_holder <holder_type> : always_construct_holder<void , ##__VA_ARGS__> { \
@@ -883,7 +882,6 @@ PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments")
883
882
: public type_caster_holder<type, holder_type> {}; \
884
883
} \
885
884
PYBIND11_NAMESPACE_END (PYBIND11_NAMESPACE)
886
- PYBIND11_WARNING_POP
887
885
888
886
// PYBIND11_DECLARE_HOLDER_TYPE holder types:
889
887
template <typename base, typename holder>
You can’t perform that action at this time.
0 commit comments