Boost C++ Libraries: Ticket #12159: file_descriptor(int,flags) constructor fails https://svn.boost.org/trac10/ticket/12159 <p> The following code fails to compile: </p> <p> int fd = fileno(filename); </p> <p> boost::iostreams::file_descriptor_source fd_src( </p> <blockquote> <p> fd, boost::iostreams::file_descriptor_flags::close_handle </p> </blockquote> <p> ); </p> <p> 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&amp;)’ </p> <blockquote> <p> { open(detail::path(path), mode); } </p> </blockquote> <p> ... </p> <p> Evidently the templated constructor is overriding. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12159 Trac 1.4.3 Dylan Doxey <dylan.doxey@…> Tue, 26 Apr 2016 22:49:42 GMT <link>https://svn.boost.org/trac10/ticket/12159#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12159#comment:1</guid> <description> <p> To clarify, the templated constructor is being selected as the only viable overload. </p> </description> <category>Ticket</category> </item> </channel> </rss>