【发布时间】:2022-11-12 16:29:37
【问题描述】:
假设我有
cdef extern from "foo.h":
cppclass Base:
Base(int i) # only constructor
cdef cppclass Child(Base):
__init__():
pass
如何确保调用 Base(int)?为Child生成的C++需要在其构造函数的初始化列表中初始化Base;我可以用 Cython 做到这一点吗?
【问题讨论】: