I'm doing the following:
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>('\\', ',', '\"'));
Expecting to use the boost::tokenizer
constructor
tokenizer(Iterator first, Iterator last,
const TokenizerFunc& f = TokenizerFunc())
: first_(first), last_(last), f_(f) { }
but GCC 4.9.3 gives me:
no known conversion for argument 1 from ‘const char*’ to ‘__gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >’
Now, I've seen a couple of related questions in which the answer was forgetting to #include <algorithm>
- but I have included it. Is there some other missing include, or is it another issue?