|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2007-09-12 14:32:18
Patch applied.
Thanks!
--Beman
Neal Becker wrote:
> # HG changeset patch
> # User ndbecker2_at_[hidden]
> # 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
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk