commit 01ca92d3b2fbcc5fc35eb2defb8f2d2966f9fb1e (tf-python) author: thegeorg date: 2021-03-16T18:13:35+03:00 Renew python dramatically --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -27,6 +27,7 @@ #include #include #include +#include PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) PYBIND11_NAMESPACE_BEGIN(detail) @@ -513,6 +514,10 @@ template enable_if_t::value>> : string_caster> {}; +template +struct type_caster, enable_if_t::value>> + : string_caster> {}; + #ifdef PYBIND11_HAS_STRING_VIEW template struct type_caster,