[Boost-bugs] [Boost C++ Libraries] #5217: File streams broken on Windows with STLPort

Subject: [Boost-bugs] [Boost C++ Libraries] #5217: File streams broken on Windows with STLPort
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-23 14:01:19


#5217: File streams broken on Windows with STLPort
------------------------------+---------------------------------------------
 Reporter: andysem | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.46.0 | Severity: Showstopper
 Keywords: fstream |
------------------------------+---------------------------------------------
 In filesystem/v3/fstream.hpp:26 there is an assumption that on Windows STL
 streams support wide-character file names as arguments. If STLPort is used
 this is not true. This breaks compilation on this platform with the
 following output:

 {{{
 C:\_Sources\boost-release\boost/filesystem/v3/fstream.hpp(123) : error
 C2664: 'stlp_std::basic_ofstream<_CharT,_Traits>::open' : cannot convert
 parameter 1 from 'const boost::filesystem3::path::value_type *' to 'const
 char *'
         with
         [
             _CharT=char,
             _Traits=stlp_std::char_traits<char>
         ]
         Types pointed to are unrelated; conversion requires
 reinterpret_cast, C-style cast or function-style cast
         C:\_Sources\boost-release\boost/filesystem/v3/fstream.hpp(123) :
 while compiling class template member function 'void
 boost::filesystem3::basic_ofstream<charT>::open(const
 boost::filesystem3::path &,stlp_std::ios_base::openmode)'
         with
         [
             charT=char
         ]
         libs\log\src\text_file_backend.cpp(1078) : see reference to class
 template instantiation 'boost::filesystem3::basic_ofstream<charT>' being
 compiled
         with
         [
             charT=char
         ]
         libs\log\src\text_file_backend.cpp(1440) : see reference to class
 template instantiation
 'boost::log2_mt_nt6::sinks::basic_text_file_backend<CharT>::implementation'
 being compiled
         with
         [
             CharT=char
         ]
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5217>
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:05 UTC