Subject: [Boost-bugs] [Boost C++ Libraries] #4460: boost::iostreams::file_descriptor fd(0); fails with "ambiguous overloaded path(...)"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-21 16:21:34
#4460: boost::iostreams::file_descriptor fd(0); fails with "ambiguous overloaded
path(...)"
----------------------------------+-----------------------------------------
Reporter: ps@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: iostreams
Version: Boost Release Branch | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
When trying to compile a testcase which is usually used to check whether
boost iostreams are usable, I get a compile error (has some path
constructor recently been added?)
I am using release branch [64222]
$ cat test.cpp
#include <boost/iostreams/device/file_descriptor.hpp>
int
main ()
{
boost::iostreams::file_descriptor fd(0);
fd.close();
return 0;
}
$ g++ test.cpp -I/home/staff/ps/include/boost-release/
-L/home/staff/ps/lib -lboost_iostreams
/home/staff/ps/include/boost-
release/boost/iostreams/device/file_descriptor.hpp: In constructor
âboost::iostreams::file_descriptor::file_descriptor(const Path&,
std::_Ios_Openmode) [with Path = int]â:
test.cpp:6: instantiated from here
/home/staff/ps/include/boost-
release/boost/iostreams/device/file_descriptor.hpp:91: error: call of
overloaded âpath(const int&)â is ambiguous
/home/staff/ps/include/boost-release/boost/iostreams/detail/path.hpp:111:
note: candidates are: boost::iostreams::detail::path::path(const
std::wstring&) <near match>
/home/staff/ps/include/boost-release/boost/iostreams/detail/path.hpp:58:
note: boost::iostreams::detail::path::path(const
boost::iostreams::detail::path&) <near match>
/home/staff/ps/include/boost-release/boost/iostreams/detail/path.hpp:47:
note: boost::iostreams::detail::path::path(const char*)
<near match>
/home/staff/ps/include/boost-release/boost/iostreams/detail/path.hpp:44:
note: boost::iostreams::detail::path::path(const
std::string&) <near match>
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4460> 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:03 UTC