diff --git a/src/Executors.cxx b/src/Executors.cxx index 221aaa3..194fcde 100644 --- a/src/Executors.cxx +++ b/src/Executors.cxx @@ -545,7 +545,7 @@ CPPYY_IMPL_ARRAY_EXEC(ComplexL, std::complex, ) PyObject* CPyCppyy::Complex##code##Executor::Execute( \ Cppyy::TCppMethod_t method, Cppyy::TCppObject_t self, CallContext* ctxt) \ { \ - static Cppyy::TCppType_t scopeid = Cppyy::GetComplexType(#type); \ + static Cppyy::TCppScope_t scopeid = Cppyy::GetScope("std::complex<"#type">");\ std::complex* result = \ (std::complex*)GILCallO(method, self, ctxt, scopeid); \ if (!result) { \ @@ -567,7 +567,7 @@ PyObject* CPyCppyy::STLStringExecutor::Execute( // execute with argument , construct python string return value // TODO: make use of GILLCallS (?!) - static Cppyy::TCppType_t sSTLStringScope = Cppyy::GetFullScope("std::string"); + static Cppyy::TCppScope_t sSTLStringScope = Cppyy::GetFullScope("std::string"); std::string* result = (std::string*)GILCallO(method, self, ctxt, sSTLStringScope); if (!result) result = new std::string{};