diff --git a/include/boost/iostreams/device/file_descriptor.hpp b/include/boost/iostreams/device/file_descriptor.hpp index 5d6af1281..5b8723771 100644 --- a/include/boost/iostreams/device/file_descriptor.hpp +++ b/include/boost/iostreams/device/file_descriptor.hpp @@ -222,7 +222,8 @@ class BOOST_IOSTREAMS_DECL file_descriptor_source : private file_descriptor { // open overload taking a Boost.Filesystem path template - void open(const Path& path, BOOST_IOS::openmode mode = BOOST_IOS::in); + void open(const Path& path, BOOST_IOS::openmode mode = BOOST_IOS::in) + { open(detail::path(path), mode); } private: // open overload taking a detail::path