| 2002 | typename Traits = rebind_member_ptr<Derived, T>, |
| 2003 | typename Adapted = typename Traits::type> |
| 2004 | constexpr PYBIND11_ALWAYS_INLINE Adapted adapt_member_ptr(T pmf) { |
| 2005 | static_assert( |
| 2006 | detail::is_accessible_base_of<typename Traits::source_class, Derived>::value, |
| 2007 | "Cannot bind an inaccessible base class method; use a lambda definition instead"); |
| 2008 | return pmf; |
| 2009 | } |
| 2010 | |
| 2011 | PYBIND11_NAMESPACE_END(detail) |
| 2012 |
nothing calls this directly
no outgoing calls
no test coverage detected