私は次のことをしています:
using namespace boost;
const char* line = // ...
size_t line_length = // ...
// ...
tokenizer<escaped_list_separator<char> > line_tokenizer(
line, line + line_length,
escaped_list_separator<char>('\\', ',', '\"'));
boost::tokenizer
コンストラクターの使用を期待する
tokenizer(Iterator first, Iterator last,
const TokenizerFunc& f = TokenizerFunc())
: first_(first), last_(last), f_(f) { }
しかし、GCC 4.9.3 は私に与えます:
no known conversion for argument 1 from ‘const char*’ to ‘__gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >’
さて、答えが忘れられていた関連する 質問#include <algorithm>
をいくつか見ましたが、それを含めました。他に欠落しているインクルードはありますか、それとも別の問題ですか?