File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -281,11 +281,15 @@ struct holder_helper<ref<T>> {
281
281
// Make pybind aware of the ref-counted wrapper type (s):
282
282
PYBIND11_DECLARE_HOLDER_TYPE (T, ref<T>, true )
283
283
// The following is not required anymore for std::shared_ptr, but it should compile without error:
284
+ PYBIND11_WARNING_PUSH
285
+ PYBIND11_WARNING_DISABLE_GCC(" -Wpedantic" )
286
+ PYBIND11_WARNING_DISABLE_CLANG(" -Wgnu-zero-variadic-macro-arguments" )
284
287
PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)
285
288
PYBIND11_DECLARE_HOLDER_TYPE(T, huge_unique_ptr<T>)
286
289
PYBIND11_DECLARE_HOLDER_TYPE(T, custom_unique_ptr<T>)
287
290
PYBIND11_DECLARE_HOLDER_TYPE(T, shared_ptr_with_addressof_operator<T>)
288
291
PYBIND11_DECLARE_HOLDER_TYPE(T, unique_ptr_with_addressof_operator<T>)
292
+ PYBIND11_WARNING_POP
289
293
290
294
TEST_SUBMODULE(smart_ptr, m) {
291
295
// Please do not interleave `struct` and `class` definitions with bindings code,
You can’t perform that action at this time.
0 commit comments