On 18 June 2014 12:59, Bjorn Reese <breese@mail1.stofanet.dk> 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 ?

http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/example/cpp03/chat/chat_client.cpp

as it does a pop before checking

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools