Re: [Boost-bugs] [Boost C++ Libraries] #2894: Incorrect type for buffer_size and pback_size parameters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2894: Incorrect type for buffer_size and pback_size parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-13 13:36:16


#2894: Incorrect type for buffer_size and pback_size parameters
---------------------------------------------------+------------------------
  Reporter: gareth.sylvester-bradley@… | Owner: turkanis
      Type: Bugs | Status: reopened
 Milestone: Boost 1.39.0 | Component: iostreams
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------+------------------------
Changes (by Richard Webb <richard.webb@…>):

  * status: closed => reopened
  * version: Boost 1.38.0 => Boost Development Trunk
  * resolution: fixed =>

Comment:

 It looks like the change to detail/streambuf/indirect_streambuf.hpp has
 caused a bunch of regression test failures. e.g. from
 http://www.boost.org/development/tests/trunk/developer/iostreams.html :

 From VC10:
 indirect_streambuf.hpp(171) : error C2782: 'const _Ty &std::max(const _Ty
 &,const _Ty &)' : template parameter '_Ty' is ambiguous

 From GCC 4.4.1:
 indirect_streambuf.hpp:171: error: no matching function for call to
 ???max(int, std::streamsize&)??


 Changing line 171 of indirect_streambuf.hpp to cast the '2' to a
 std::streamsize fixes the failures on VC10.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2894#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 : 2017-02-16 18:50:01 UTC