[Boost-bugs] [Boost C++ Libraries] #11036: make sub_match a Range

Subject: [Boost-bugs] [Boost C++ Libraries] #11036: make sub_match a Range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-16 15:46:39


#11036: make sub_match a Range
------------------------------+-------------------------
 Reporter: giel@… | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: Boost 1.58.0 | Component: regex
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 boost::sub_match is conceptually already a Range. It already provides the
 correct typedefs and only misses the `begin()` and `end()` iterator
 retrieval functions.

 Alternatively implementing the `range_begin(sub_match&)` and
 `range_end(sub_match&)` functions would achieve the same:
 http://www.boost.org/doc/libs/1_57_0/libs/range/doc/html/range/reference/extending/method_2.html.
 That however would not permit direct usage with C++11's foreach, member
 methods `begin()` and `end()` would.

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