$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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);