2 番目の引数に渡そうとしてAnsiString(someStr).c_str()
いboost::split()
ますが、引数の不一致を示すことを拒否しています!!
ここにコードスニペットがあります
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 文字列型に正しく変換していますか?