Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2007-09-11 21:05:56


# 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() );
     }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk