Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13515: async_pipe::async_read_some returns zero read size if -O<something> is used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-07-31 14:18:58
#13515: async_pipe::async_read_some returns zero read size if -O<something> is used
--------------------------------------+----------------------------
Reporter: Tomasz Jonak <tjonak@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------+----------------------------
Comment (by anonymous):
Hello,
{{{
while (read_ec != boost::asio::error::eof);
}}}
error::eof is an enum value of type boost::asio::error::errc; in this
context read_ec will be converted to bool and compared against the integer
value of error::eof.
Try to compare against {{{read_ec.value()}}} instead.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13515#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-07-31 14:25:01 UTC