Skip to content

Commit

Permalink
fix resolution of std::complex
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa authored and aaronj0 committed Feb 11, 2025
1 parent e5bc22c commit 1ae94a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Executors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ CPPYY_IMPL_ARRAY_EXEC(ComplexL, std::complex<long>, )
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<type>* result = \
(std::complex<type>*)GILCallO(method, self, ctxt, scopeid); \
if (!result) { \
Expand All @@ -567,7 +567,7 @@ PyObject* CPyCppyy::STLStringExecutor::Execute(
// execute <method> with argument <self, ctxt>, 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{};
Expand Down

0 comments on commit 1ae94a5

Please sign in to comment.