Ticket #4485: patch.diff
File patch.diff, 1.4 KB (added by , 11 years ago) |
---|
-
boost/iostreams/detail/path.hpp
50 50 template<typename Path> 51 51 explicit path(const Path& p, typename Path::external_string_type* = 0) 52 52 { 53 typedef typename Path::external_string_type string_type; 54 init(p, boost::type<string_type>()); 53 init(p.external_file_string()); 55 54 } 56 55 56 // Constructor taking a boost::filesystem3::path (boost filesystem v3) 57 template<typename Path> 58 explicit path(const Path& p, typename Path::string_type* = 0) 59 { 60 init(p.native()); 61 } 62 57 63 // Copy constructor 58 64 path(const path& p) 59 65 : narrow_(p.narrow_), wide_(p.wide_), is_wide_(p.is_wide_) … … 111 117 path(const std::wstring&); 112 118 path& operator=(const std::wstring&); 113 119 114 template<typename Path> 115 void init(const Path& p, boost::type<std::string>) 120 void init(std::string const& file_path) 116 121 { 117 narrow_ = p.external_file_string();122 narrow_ = file_path; 118 123 wide_.clear(); 119 124 is_wide_ = false; 120 125 } 121 126 122 template<typename Path> 123 void init(const Path& p, boost::type<std::wstring>) 127 void init(std::wstring const& file_path) 124 128 { 125 129 narrow_.clear(); 126 wide_ = p.external_file_string();130 wide_ = file_path; 127 131 is_wide_ = true; 128 132 } 129 133