Subject: Re: [boost] Heads up - string_ref landing
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-11-16 08:02:24


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.