Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2019-11-27 22:30:58

On 28/11/2019 06:23, Vinnie Falco wrote:
> On Wed, Nov 27, 2019 at 8:36 AM Phil Endecott wrote:
>> auto sub_sv = std::string_view(s).substr(pos,count);
> I can support this if there is consensus that substr() should return a
> fixed capacity string instead of a view.

To clarify, I think the argument was that one can already obtain a
string_view substr via the above, therefore your own member substr
should probably just be removed (as it deviates from std::string
semantics anyway).

Boost list run by bdawes at, gregod at, cpdaniel at, john at