diff options
Diffstat (limited to '3rdParty/Boost/src/tools/bcp/bcp_imp.cpp')
-rw-r--r-- | 3rdParty/Boost/src/tools/bcp/bcp_imp.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/3rdParty/Boost/src/tools/bcp/bcp_imp.cpp b/3rdParty/Boost/src/tools/bcp/bcp_imp.cpp index c5d7fb4..5801735 100644 --- a/3rdParty/Boost/src/tools/bcp/bcp_imp.cpp +++ b/3rdParty/Boost/src/tools/bcp/bcp_imp.cpp @@ -81,7 +81,7 @@ void bcp_implementation::enable_unix_lines() void bcp_implementation::set_boost_path(const char* p) { // Hack to strip trailing slashes from the path - m_boost_path = (fs::path(p, fs::native) / "boost").parent_path(); + m_boost_path = (fs::path(p) / "boost").parent_path(); fs::path check = m_boost_path / "boost" / "version.hpp"; if(!fs::exists(check)) { @@ -94,7 +94,7 @@ void bcp_implementation::set_boost_path(const char* p) void bcp_implementation::set_destination(const char* p) { - m_dest_path = fs::path(p, fs::native); + m_dest_path = fs::path(p); } void bcp_implementation::add_module(const char* p) @@ -140,7 +140,7 @@ int bcp_implementation::run() if(!m_list_mode && !m_license_mode && !fs::exists(m_dest_path)) { std::string msg("Destination path does not exist: "); - msg.append(m_dest_path.native_file_string()); + msg.append(m_dest_path.string()); std::runtime_error e(msg); boost::throw_exception(e); } @@ -190,15 +190,8 @@ int bcp_implementation::run() // fs::path module; fs::path exmodule; - try{ - module = fs::path(*i); - exmodule = fs::path(*i + ".hpp"); - } - catch(...) - { - module = fs::path(*i, fs::native); - exmodule = fs::path(*i + ".hpp", fs::native); - } + module = fs::path(*i); + exmodule = fs::path(*i + ".hpp"); if(m_scan_mode) { |