
30 Jan
2013
30 Jan
'13
4:23 p.m.
Hi 2013/1/30 Marshall Clow <mclow.lists@gmail.com>:
On Jan 30, 2013, at 6:22 AM, Andreas Pokorny <andreas.pokorny@gmail.com> wrote:
Can the current proposal of string_ref capture QtStrings without copying?
I haven't actually tried it, but after checking the QT docs, a
QString str; basic_stringref<QChar> ref (str.data(), str.len());
QChar seems to be a class warpping a 16bit unicode character. Then you can only use that for functions taking a basic_string_ref<QChar> or functions templated on the encoding type. That does fit to the use case .. the callee defines the signature. Andreas