
16 Nov
2012
16 Nov
'12
2:13 p.m.
16.11.12, 17:30, "Mathias Gaunard" <mathias.gaunard@ens-lyon.org>":
On 16/11/12 11:43, Olaf van der Spek wrote:
I'd like this to work: void f(str_ref);
f("Olaf");
It definitely needs to work, otherwise string_ref is useless. The whole point is that it should behave like std::string but avoid useless copies.
If this is all you need, just use plain references. Thanks, Maxim