
16 Nov
2012
16 Nov
'12
1:02 p.m.
On 15/11/12 21:41, Phil Endecott wrote:
BUT, I think my feeling is that this is actually taking us in the wrong direction: my current coding style tries to avoid the "special" features of std::string and prefers the things that are common to other containers, and std::algorithms.
My understanding is that string_ref is meant for people who do not use templates. Notice how the proposal is coming from Google and LLVM, mostly C++ projects which prefer runtime polymorphism. And of course, runtime polymorphism on arbitrary iterators or ranges would be extremely inefficient.