27 Nov
2019
27 Nov
'19
10:30 p.m.
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).