Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Closing async client socket after writing last message
From: Nicholas Yue (yue.nicholas_at_[hidden])
Date: 2014-06-18 16:49:05

On 18 June 2014 12:59, Bjorn Reese <breese_at_[hidden]> wrote:

> On 06/18/2014 08:48 PM, Nicholas Yue wrote:
> write_msgs_.pop_front();
>> if (!write_msgs_.empty())
> Swap these two lines; otherwise you do not write the last message.
Thanks for the heads up.

Does that mean that the examples will example this problem ?

as it does a pop before checking


Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at