我目前正在为Python开发一个基于C++的模块。我发现Boost::Python可以很好地完成我想要完成的任务。但是,我现在遇到了一些由Boost::Python生成的文档字符串的问题。给定以下Boost::Python定义:
BOOST_PYTHON_MODULE(gcsmt)
{
class_<gcsmt::Units>("Units", "Sets the units used as input.", no_init)
.def("PrintSupported", &gcsmt::Units::printSup