Re: [Boost-bugs] [Boost C++ Libraries] #3997: Can't use iterator_range as template argument in tokenizer

Subject: Re: [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-12 05:43:38


#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 |
---------------------------------------+------------------------------------

Comment(by Roman Bober <roman300178@…>):

 I see,and of course my assign method suggestion above doesn't make copy of
 elements, but rather "repoints" to new location by given iterators.
 However, I understand your point, that notion of assign for containers is
 different from iterator_range concept.
 Solution I think lies somewhere in the middle, since tokenizer takes as
 template argument Container and iterator_range isn't truly a container,
 thus there must be some way to interact between.
 So change to the tokenizer could be: it would take iterator_range as it's
 template argument as well?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3997#comment:4>
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