#define EXTERNAL_API_VERSION 1.12.1
std::string version = boost::lexical_cast<std::string>(EXTERNAL_API_VERSION);
此代码生成编译错误:
error C2143: syntax error : missing ')' before 'constant'
error C2059: syntax error : ')'
是否有任何简单的替代方法可以将这种格式的数字(多于一个点)转换为字符串?