【发布时间】:2014-11-14 01:28:47
【问题描述】:
我有int 和string 的异构列表,我想将它们全部存储在vector<string> 中。
使用此命令:
std::string temp = boost::python::extract<std::string>(xList[i][j]);
我收到此错误:
TypeError: No registered converter was able to produce a C++ rvalue of type std::string from this Python object of type float
【问题讨论】:
标签: python c++ boost-python