Re: [Boost-bugs] [Boost C++ Libraries] #9287: Additional string_ref constructors

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9287: Additional string_ref constructors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-22 12:29:23

#9287: Additional string_ref constructors
  Reporter: psiha | Owner: marshall
      Type: Feature Requests | Status: assigned
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.54.0 | Severity: Not Applicable
Resolution: | Keywords:
Changes (by marshall):

 * owner: no-maintainer => marshall
 * status: new => assigned


 A string_re refers to a contiguous sequence of characters.

 An iterator_range is not contiguous.
 Nor is, in general, a pair of iterators.

 The contents of a `vector<char>` are, but you can make a string_ref easily
 thus: `string_ref sr(&*v.begin(), v.size());`

 I don't see a compelling need here. If you have examples, (things that you
 want to do that are awkward/impossible w/o these constructors) please tell
 me about them.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC