From 1ae94a50e1618504dcebd277209e033e41130e5d Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Sun, 9 Feb 2025 15:07:40 +0530 Subject: [PATCH] fix resolution of `std::complex` --- src/Executors.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{};