Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1671: type mismatch of buffer size parameter causes overload resolution to fail
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-02 16:32:12
#1671: type mismatch of buffer size parameter causes overload resolution to fail
---------------------------+------------------------------------------------
Reporter: turkanis | Owner: turkanis
Type: Bugs | Status: closed
Milestone: Boost 1.36.0 | Component: iostreams
Version: Boost 1.34.1 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------+------------------------------------------------
Changes (by turkanis):
* status: new => closed
* resolution: => fixed
Comment:
I have disabled the forwarding constructors and open() overloads in
detail/forward.hpp when the first template parameter is identical to the
underlying device type. This is a little too broad, since it fails to
check whether the remaining parameters are integral; I judged that device
constructors whose first parameter is an instance of the device itself
would be pretty rare.
I was able to reproduce the error with VC8.0 on a 32-bit OS with this
code:
typedef stream<file_source> my_stream;
my_stream s(file_source(""), (long) 100);
The modification to forward.hpp allows the above to compile.
See [46047]
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1671#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 : 2017-02-16 18:49:58 UTC