#error "Intentional Breakage" (to verify: PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT)

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-08-13 23:37:10 -07:00
parent 58aaf5e480
commit 4f6f5cb6e9

View File

@ -1824,6 +1824,7 @@ struct property_cpp_function<
# define PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT # define PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT
template <typename> template <typename>
using default_holder_type = smart_holder; using default_holder_type = smart_holder;
# error "Intentional Breakage"
#else #else
template <typename T> template <typename T>
using default_holder_type = std::unique_ptr<T>; using default_holder_type = std::unique_ptr<T>;