Boost C++ Libraries: Ticket #4940: Problem with construcotr of file_descriptor_sink class. https://svn.boost.org/trac10/ticket/4940 <pre class="wiki">$ cat test.cpp #include &lt;boost/iostreams/device/file_descriptor.hpp&gt; #include &lt;boost/iostreams/stream.hpp&gt; using namespace boost::iostreams; class fdstream : public stream&lt;file_descriptor_sink&gt; { public: fdstream(int fd): stream&lt;file_descriptor_sink&gt;(fd) {} }; $ gcc test.cpp -o test /usr/include/boost/iostreams/device/file_descriptor.hpp: In constructor 'boost::iostreams::file_descriptor_sink::file_descriptor_sink(const Path&amp;, std::_Ios_Openmode) [with Path = int]': /usr/include/boost/iostreams/stream.hpp:130: instantiated from 'boost::iostreams::stream&lt;Device, Tr, Alloc&gt;::stream(U100&amp;, typename boost::disable_if&lt;boost::is_same&lt;U0, T&gt;, void&gt;::type*) [with U100 = int, Device = boost::iostreams::file_descriptor_sink, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;]' test.cpp:9: instantiated from here /usr/include/boost/iostreams/device/file_descriptor.hpp:276: error: call of overloaded 'path(const int&amp;)' is ambiguous /usr/include/boost/iostreams/detail/path.hpp:111: note: candidates are: boost::iostreams::detail::path::path(const std::wstring&amp;) &lt;near match&gt; /usr/include/boost/iostreams/detail/path.hpp:58: note: boost::iostreams::detail::path::path(const boost::iostreams::detail::path&amp;) &lt;near match&gt; /usr/include/boost/iostreams/detail/path.hpp:47: note: boost::iostreams::detail::path::path(const char*) &lt;near match&gt; /usr/include/boost/iostreams/detail/path.hpp:44: note: boost::iostreams::detail::path::path(const std::string&amp;) &lt;near match&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4940 Trac 1.4.3 osmano807@… Mon, 13 Dec 2010 20:24:22 GMT attachment set https://svn.boost.org/trac10/ticket/4940 https://svn.boost.org/trac10/ticket/4940 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">clang.log</span> </li> </ul> <p> Log output when compilling with clang </p> Ticket osmano807@… Mon, 13 Dec 2010 20:25:49 GMT cc set https://svn.boost.org/trac10/ticket/4940#comment:1 https://svn.boost.org/trac10/ticket/4940#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">osmano807@…</span> added </li> </ul> Ticket Steven Watanabe Sun, 02 Jan 2011 03:53:10 GMT <link>https://svn.boost.org/trac10/ticket/4940#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4940#comment:2</guid> <description> <p> The constructor you're trying to use is deprecated and has been disabled by default. See <a href="http://www.boost.org/doc/libs/1_45_0/libs/iostreams/doc/classes/file_descriptor.html#file_descriptor_sink">http://www.boost.org/doc/libs/1_45_0/libs/iostreams/doc/classes/file_descriptor.html#file_descriptor_sink</a>. </p> <p> Whoops. It looks like the wrong constructor was marked as deprecated in the docs. I'll fix that. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 11 Feb 2011 04:16:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4940#comment:3 https://svn.boost.org/trac10/ticket/4940#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> To enable this constructor compile with -DBOOST_IOSTREAMS_USE_DEPRECATED. </p> Ticket