【发布时间】:2020-11-20 05:36:49
【问题描述】:
我在标题中定义了一个 typedef,如下所示:
typedef struct data
{
std::string id;
std::string status;
} data_set;
我希望能够将其包装在 Boost Python 模块中以使其可用,因为它已传递给其他方法。这会被包装为 boost 中的一个类吗?或者有没有特定的方法来包装 typedef?
【问题讨论】:
标签: c++ boost struct typedef boost-python