[Boost-bugs] [Boost C++ Libraries] #4909: class path funcs taking iterators making poor assumption

Subject: [Boost-bugs] [Boost C++ Libraries] #4909: class path funcs taking iterators making poor assumption
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-29 22:08:29


#4909: class path funcs taking iterators making poor assumption
--------------------------+-------------------------------------------------
 Reporter: bemandawes | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost-1.46.0 | Component: filesystem
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 class path funcs taking iterators are assuming the value_type of the
 iterator is a character type. But it is perfectly natural to write
 something like path p(q.begin(), q.end()) where q is a path or a vector of
 strings, so the value type is a container.

 The fix is to add several overloads depending on the value_type of the
 iterator.

 The rule-of-thumb might be something like "if the operation has an
 overload of a single item of type T, it should also handle iteration over
 a sequence of T's.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4909>
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:04 UTC