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 04:28:28


#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 steven_watanabe):

 Assign for containers makes a copy of all the elements. Clearly,
 iterator_range is not going to do this. I think it's a bad idea for
 iterator_range to try to mimic the mutable interface of containers, when
 the actual behavior is not consistent. While I appreciate that you want
 to use iterator_range with tokenizer, I think adding assign to
 iterator_range is probably the wrong solution. I think it would be better
 if tokenizer could be changed so that it doesn't rely on assign.

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