File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1985,11 +1985,13 @@ class class_ : public detail::generic_type {
1985
1985
static_assert (!has_alias || std::is_polymorphic<type>::value,
1986
1986
" Cannot use an alias class (aka trampoline) with a non-polymorphic type" );
1987
1987
1988
+ #ifndef PYBIND11_RUN_TESTING_WITH_SMART_HOLDER_AS_DEFAULT_BUT_NEVER_USE_IN_PRODUCTION_PLEASE
1988
1989
static_assert (!has_alias || !detail::is_smart_holder<holder_type>::value
1989
1990
|| std::is_base_of<trampoline_self_life_support, type_alias>::value,
1990
1991
" Alias class (aka trampoline) must inherit from"
1991
1992
" pybind11::trampoline_self_life_support if used in combination with"
1992
1993
" pybind11::smart_holder" );
1994
+ #endif
1993
1995
static_assert (!has_alias || detail::is_smart_holder<holder_type>::value
1994
1996
|| !std::is_base_of<trampoline_self_life_support, type_alias>::value,
1995
1997
" pybind11::trampoline_self_life_support is a smart_holder feature, therefore"
You can’t perform that action at this time.
0 commit comments