Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio::buffer + std::wstring
From: Igor R (boost.lists_at_[hidden])
Date: 2011-12-28 04:48:27


> The issue isn't writing nor object lifetime. If I use std::string objects the receiver gets all of the content but with std::wstring only 1/4 of the content is received.

It's the same buffer() function both for std::string and std::wstring:

template <typename Elem, typename Traits, typename Allocator>
inline const_buffers_1 buffer(const std::basic_string<Elem, Traits,
Allocator>& data);


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