Subject: [Boost-bugs] [Boost C++ Libraries] #3997: Can't use iterator_range as template argument in tokenizer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-11 09:10:16
#3997: Can't use iterator_range as template argument in tokenizer
---------------------------------------+------------------------------------
Reporter: roman300178@⦠| Owner: nesotto
Type: Feature Requests | Status: new
Milestone: Boost 1.43.0 | Component: range
Version: Boost 1.39.0 | Severity: Problem
Keywords: tokenizer iterator_range |
---------------------------------------+------------------------------------
I tried to use boost tokenizer directly with char* (instead of
std::string)
In order to do so, I needed convert the char* to iterator_range.
I managed to do so by calling "as_literal" method.
Afterwards I used iterator range as tokenizer argument and took
tokenizer's iterator for token parsing.
However I got compiler error that "assign" method on iterator_range object
isn't defined.
I think this compilation problem could easily fixed by adding to
iterator_range new "assign" method:
iterator_range& assign(IteratorT beg, IteratorT end)
{
m_Begin = beg;
m_End = end;
#ifndef NDEBUG
singular = false;
#endif
return *this;
}
thanks,
Roman
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3997> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC