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-08-01 19:59:31
#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 bronf):
> 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.
Apparently this not the case. I tested in gdb and boost::asio::error::eof
is first converted to an error_code which is then compared to read_ec.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13515#comment:2> 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-08-01 20:07:29 UTC