Remove obsolete PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT macro.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2025-02-18 20:10:57 -08:00
parent 324f29df40
commit febbd55a15
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -1848,7 +1848,6 @@ struct property_cpp_function<
// Running the pybind11 unit tests with smart_holder as the default holder is to ensure // Running the pybind11 unit tests with smart_holder as the default holder is to ensure
// that `py::smart_holder` / `py::classh` is backward-compatible with all pre-existing // that `py::smart_holder` / `py::classh` is backward-compatible with all pre-existing
// functionality. // functionality.
# define PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT
template <typename> template <typename>
using default_holder_type = smart_holder; using default_holder_type = smart_holder;
#else #else

View File

@ -636,7 +636,7 @@ CHECK_NOALIAS(8);
CHECK_HOLDER(1, unique); CHECK_HOLDER(1, unique);
CHECK_HOLDER(2, unique); CHECK_HOLDER(2, unique);
CHECK_HOLDER(3, unique); CHECK_HOLDER(3, unique);
#ifndef PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT #ifndef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
CHECK_HOLDER(4, unique); CHECK_HOLDER(4, unique);
CHECK_HOLDER(5, unique); CHECK_HOLDER(5, unique);
#endif #endif