Boost logo

Boost Users :

Subject: Re: [Boost-users] ASIO: sending QString (UTF-16)
From: Igor R (boost.lists_at_[hidden])
Date: 2009-10-21 12:58:18


> The "buffer" function does not supports QString, so I wrote my own, is it
correct? "utf16()" returns a pointer to a ushort (16 bit values).

It should be ok, if you don't modify (or destroy) the message_ until
handle_write() is called.
(BTW, probably it's better to put such functions in your own namespace, not
in the ASIO one.)



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net