
18 Jan
2011
18 Jan
'11
9:22 a.m.
Ok, This is still not working, I now have: std::wstring TokensStr(Item); boost::char_delimiters_separator<wchar_t> sep; boost::tokenizer<boost::char_delimiters_separator<wchar_t> > tok(TokensStr); I now have the errors:
Well, I don't understand the motivation behind this, but it appears that tokenizer template is declared as follows: template < typename TokenizerFunc = char_delimiters_separator<char>, typename Iterator = std::string::const_iterator, typename Type = std::string
class tokenizer; So you have to pass all the 3 params explicitly: boost::tokenizer<boost::char_delimiters_separator<wchar_t>, std::wstring::const_iterator, std::wstring> tok(TokensStr);