Subject: [Boost-bugs] [Boost C++ Libraries] #12159: file_descriptor(int, flags) constructor fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-26 22:44:26
#12159: file_descriptor(int,flags) constructor fails
------------------------------------------+-----------------------
Reporter: Dylan Doxey <dylan.doxey@â¦> | Owner: turkanis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
Version: Boost 1.58.0 | Severity: Problem
Keywords: file_descriptor int template |
------------------------------------------+-----------------------
The following code fails to compile:
int fd = fileno(filename);
boost::iostreams::file_descriptor_source fd_src(
fd,
boost::iostreams::file_descriptor_flags::close_handle
);
The compiler reports:
...
/usr/include/boost/iostreams/device/file_descriptor.hpp:194:11: error: no
matching function for call to
âboost::iostreams::detail::path::path(boost::iostreams::file_descriptor_source*
const&)â
{ open(detail::path(path), mode); }
...
Evidently the templated constructor is overriding.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12159> 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:20 UTC