Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9577: trim_copy doesn't support string_ref
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-15 21:18:43
#9577: trim_copy doesn't support string_ref
-------------------------------+-----------------------
Reporter: ml@⦠| Owner: marshall
Type: Feature Requests | Status: assigned
Milestone: To Be Determined | Component: algorithm
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------
Changes (by marshall):
* status: new => assigned
* type: Bugs => Feature Requests
Comment:
Short answer: `trim_copy` returns a new container of the same type
containing a copy of the input (w/o leading and trailing spaces)
Since `string_ref` doesn't actually own the underlying characters, it
can't make a copy of them and return a `string_ref` to the copy. (where
would it put the characters that it copied?)
That being said, I could see how `trim` (not `trim_copy`) on a
`string_ref` could be a desired features.
Changing to a feature request.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9577#comment:1> 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:15 UTC