Re: [Boost-bugs] [Boost C++ Libraries] #13368: consuming_buffers.hpp: parse error in template argument list

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13368: consuming_buffers.hpp: parse error in template argument list
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-08 15:43:27


#13368: consuming_buffers.hpp: parse error in template argument list
-------------------------------+----------------------------
  Reporter: anonymous | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.66.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by anonymous):

 Patch proposed in the same github discussion worked for me (gcc 5.4.0).

 {{{
 --- a/boost/asio/detail/consuming_buffers.hpp
 +++ b/boost/asio/detail/consuming_buffers.hpp
 @@ -102,7 +102,7 @@ public:

      std::advance(next, next_elem_);
      std::size_t elem_offset = next_elem_offset_;
 - while (next != end && max_size > 0 && result.count <
 result.max_buffers)
 + while (next != end && max_size > 0 && (result.count) <
 result.max_buffers)
      {
        Buffer next_buf = Buffer(*next) + elem_offset;
        result.elems[result.count] = boost::asio::buffer(next_buf,
 max_size);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13368#comment:6>
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-02-08 15:48:27 UTC