Universal reference in Tokenizer.

This commit is contained in:
Alex Zolotarev 2016-02-15 15:35:50 +03:00 committed by Sergey Yershov
parent 01409327e8
commit 96807088bf

View file

@ -165,8 +165,8 @@ public:
typedef TokenizeIterator<SimpleDelimiter,
::utf8::unchecked::iterator<string::const_iterator> > SimpleTokenizer;
template <typename FunctorT>
void Tokenize(string const & str, char const * delims, FunctorT f)
template <typename TFunctor>
void Tokenize(string const & str, char const * delims, TFunctor && f)
{
SimpleTokenizer iter(str, delims);
while (iter)