【发布时间】:2011-12-22 09:38:26
【问题描述】:
我正在尝试将 AnsiString(someStr).c_str() 传递给 boost::split() 第二个参数,但它拒绝显示参数不匹配!!
这里是代码sn-p
vector<std::string> sVec;
boost::split(sVec,AnsiString(response).c_str(),boost::is_any_of(" "));//err in this line
ShowMessage(sVec[1].c_str());
然而
boost::split(sVec,"这是一个测试",boost::is_any_of(" "));
效果很好!
我将 AnsiString 转换为 c 字符串类型是否正确???
【问题讨论】:
标签: boost c++builder-2010