Re: [Boost-bugs] [Boost C++ Libraries] #13291: read_until won't compile with Visual Studio 2017 using regex

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13291: read_until won't compile with Visual Studio 2017 using regex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-05-02 10:58:16


#13291: read_until won't compile with Visual Studio 2017 using regex
----------------------------------------------+----------------------------
  Reporter: Ville-Pekka Vahteala <vahtis@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.66.0 | Severity: Showstopper
Resolution: | Keywords: asio, regex
----------------------------------------------+----------------------------

Comment (by Eric Müller <mueller@…>):

 I also encountered this issue, and overloading the friended
 `read_size_helper` (taking `basic_streambuf` as the first parameter) for
 `basic_streambuf_ref` (in `boost/asio/basic_streambuf.hpp`) might be a
 fix:

 {{{
 /// Adapts basic_streambuf to the dynamic buffer sequence type
 requirements.
 #if defined(GENERATING_DOCUMENTATION)
 template <typename Allocator = std::allocator<char> >
 #else
 template <typename Allocator>
 #endif
 class basic_streambuf_ref
 {
 // ...
 private:
   friend std::size_t read_size_helper(
       basic_streambuf_ref& sb, std::size_t max_size)
   {
     return read_size_helper(sb.sb_, max_size);
   }
 };
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13291#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-05-02 11:02:17 UTC