用来#include <boost/algorithm/string.hpp>
比较std::string
_std::vector<std::string>
std::string commandLine
std::string::size_type position
std::string delimiters[] = {" ", ",", "(", ")", ";", "=", ".", "*", "-"};
std::vector<std::string> lexeme(std::begin(delimiters), std::end(delimiters));
比较
while (!boost::algorithm::contains(lexeme, std::to_string(commandLine.at(position)))){
position--;
}
生成以下错误
Error 1 error C2679: binary '==' : no operator found which takes a right-hand operand of type 'const char' (or there is no acceptable conversion)
const char
? 我不是在定义字符串吗?