Open vgvassilev opened 1 year ago
Minimal reproducable example:
template class T1<int>;
template class T2<T1<int> >;
and calling cppyy.gbl.T2
Do you mean:
template <typename T> class T1{};
template class T1<int>;
template class T1<int>;
is a class ClassTemplateSpecializationDecl
you can't instantiate it. I guess the calling code needs to be protected for this case?
We instantiate a template named
T2
from testtest_advancedcpp.py::test04_template_types
with a vector of template arguments of 1 element which is anullptr
.