[patch filesystem] fix breakage in path.cpp (svn trunk)

# HG changeset patch # User ndbecker2@gmail.com # Date 1189559067 14400 # Node ID 0ebdbab96e22aec6841beadeaa0570ef4a0c972a # Parent cb792eb148104b7f3b73778d596dc2e5c7f3c03a fix system_category diff -r cb792eb14810 -r 0ebdbab96e22 libs/filesystem/src/path.cpp --- a/libs/filesystem/src/path.cpp Tue Sep 11 15:18:55 2007 -0400 +++ b/libs/filesystem/src/path.cpp Tue Sep 11 21:04:27 2007 -0400 @@ -22,6 +22,7 @@ #include <locale> #include <boost/cerrno.hpp> +#include <boost/system/error_code.hpp> namespace { @@ -125,7 +126,7 @@ namespace boost work.get()+work_size, to_next ) != std::codecvt_base::ok ) boost::throw_exception( boost::filesystem::wfilesystem_error( "boost::filesystem::wpath::to_external conversion error", - ph, system::error_code( system::posix::invalid_argument, system_category ) ) ); + ph, system::error_code( system::posix::invalid_argument, system::system_category ) ) ); *to_next = '\0'; return external_string_type( work.get() ); } @@ -144,7 +145,7 @@ namespace boost work.get()+work_size, to_next ) != std::codecvt_base::ok ) boost::throw_exception( boost::filesystem::wfilesystem_error( "boost::filesystem::wpath::to_internal conversion error", - system::error_code( system::posix::invalid_argument, system_category ) ) ); + system::error_code( system::posix::invalid_argument, system::system_category ) ) ); *to_next = L'\0'; return internal_string_type( work.get() ); }

Neal Becker wrote: [patch for libs/filesystem/src/path.cpp] Could somebody please apply this patch, as I think this would fix the errors I'm seeing on Tru64, preventing me from running the regression tests. TIA, Markus

Patch applied. Thanks! --Beman Neal Becker wrote:
# HG changeset patch # User ndbecker2@gmail.com # Date 1189559067 14400 # Node ID 0ebdbab96e22aec6841beadeaa0570ef4a0c972a # Parent cb792eb148104b7f3b73778d596dc2e5c7f3c03a fix system_category
diff -r cb792eb14810 -r 0ebdbab96e22 libs/filesystem/src/path.cpp --- a/libs/filesystem/src/path.cpp Tue Sep 11 15:18:55 2007 -0400 +++ b/libs/filesystem/src/path.cpp Tue Sep 11 21:04:27 2007 -0400 @@ -22,6 +22,7 @@
#include <locale> #include <boost/cerrno.hpp> +#include <boost/system/error_code.hpp>
namespace { @@ -125,7 +126,7 @@ namespace boost work.get()+work_size, to_next ) != std::codecvt_base::ok ) boost::throw_exception( boost::filesystem::wfilesystem_error( "boost::filesystem::wpath::to_external conversion error", - ph, system::error_code( system::posix::invalid_argument, system_category ) ) ); + ph, system::error_code( system::posix::invalid_argument, system::system_category ) ) ); *to_next = '\0'; return external_string_type( work.get() ); } @@ -144,7 +145,7 @@ namespace boost work.get()+work_size, to_next ) != std::codecvt_base::ok ) boost::throw_exception( boost::filesystem::wfilesystem_error( "boost::filesystem::wpath::to_internal conversion error", - system::error_code( system::posix::invalid_argument, system_category ) ) ); + system::error_code( system::posix::invalid_argument, system::system_category ) ) ); *to_next = L'\0'; return internal_string_type( work.get() ); }
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Beman Dawes
-
Markus Schöpflin
-
Neal Becker