Boost logo

Boost :

Subject: Re: [boost] [string_ref] type erasure to support arbitrary strings
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2013-01-30 10:16:00


On Jan 30, 2013, at 6:22 AM, Andreas Pokorny <andreas.pokorny_at_[hidden]> 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());

should work.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk