@@ -272,26 +272,26 @@ PYBIND11_DECLARE_HOLDER_TYPE(T, custom_unique_ptr<T>);
272
272
PYBIND11_DECLARE_HOLDER_TYPE (T, shared_ptr_with_addressof_operator<T>);
273
273
PYBIND11_DECLARE_HOLDER_TYPE (T, unique_ptr_with_addressof_operator<T>);
274
274
275
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (Object, ref<Object>)
276
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject1, ref<MyObject1>)
277
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject2, std::shared_ptr<MyObject2>)
278
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject3, std::shared_ptr<MyObject3>)
279
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject4, std::unique_ptr<MyObject4, py::nodelete>)
280
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject4a, std::unique_ptr<MyObject4a, py::nodelete>)
281
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject4b, std::unique_ptr<MyObject4b>)
282
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (MyObject5, huge_unique_ptr<MyObject5>)
283
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (SharedPtrRef::A, std::shared_ptr<SharedPtrRef::A>)
284
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (SharedPtrRef, std::unique_ptr<SharedPtrRef>)
285
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (SharedFromThisRef::B, std::shared_ptr<SharedFromThisRef::B>)
286
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (SharedFromThisRef, std::unique_ptr<SharedFromThisRef>)
287
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (SharedFromThisVirt, std::shared_ptr<SharedFromThisVirt>)
288
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (C, custom_unique_ptr<C>)
289
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (TypeForHolderWithAddressOf, shared_ptr_with_addressof_operator<TypeForHolderWithAddressOf>)
290
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (TypeForMoveOnlyHolderWithAddressOf, unique_ptr_with_addressof_operator<TypeForMoveOnlyHolderWithAddressOf>)
291
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (HeldByDefaultHolder, std::unique_ptr<HeldByDefaultHolder>)
292
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (ElementBase, std::shared_ptr<ElementBase>)
293
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (ElementA, std::shared_ptr<ElementA>)
294
- PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS (ElementList, std::shared_ptr<ElementList>)
275
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (Object, ref<Object>)
276
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject1, ref<MyObject1>)
277
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject2, std::shared_ptr<MyObject2>)
278
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject3, std::shared_ptr<MyObject3>)
279
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject4, std::unique_ptr<MyObject4, py::nodelete>)
280
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject4a, std::unique_ptr<MyObject4a, py::nodelete>)
281
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject4b, std::unique_ptr<MyObject4b>)
282
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (MyObject5, huge_unique_ptr<MyObject5>)
283
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (SharedPtrRef::A, std::shared_ptr<SharedPtrRef::A>)
284
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (SharedPtrRef, std::unique_ptr<SharedPtrRef>)
285
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (SharedFromThisRef::B, std::shared_ptr<SharedFromThisRef::B>)
286
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (SharedFromThisRef, std::unique_ptr<SharedFromThisRef>)
287
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (SharedFromThisVirt, std::shared_ptr<SharedFromThisVirt>)
288
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (C, custom_unique_ptr<C>)
289
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (TypeForHolderWithAddressOf, shared_ptr_with_addressof_operator<TypeForHolderWithAddressOf>)
290
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (TypeForMoveOnlyHolderWithAddressOf, unique_ptr_with_addressof_operator<TypeForMoveOnlyHolderWithAddressOf>)
291
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (HeldByDefaultHolder, std::unique_ptr<HeldByDefaultHolder>)
292
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (ElementBase, std::shared_ptr<ElementBase>)
293
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (ElementA, std::shared_ptr<ElementA>)
294
+ PYBIND11_TYPE_CASTER_BASE_HOLDER (ElementList, std::shared_ptr<ElementList>)
295
295
296
296
#ifdef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
297
297
// To prevent triggering a static_assert in the smart_holder code.
0 commit comments