Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-09-12 14:31:28


Author: bemandawes
Date: 2007-09-12 14:31:25 EDT (Wed, 12 Sep 2007)
New Revision: 39220
URL: http://svn.boost.org/trac/boost/changeset/39220

Log:
POSIX fix from Neal Becker
Text files modified:
   trunk/libs/filesystem/src/path.cpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/libs/filesystem/src/path.cpp
==============================================================================
--- trunk/libs/filesystem/src/path.cpp (original)
+++ trunk/libs/filesystem/src/path.cpp 2007-09-12 14:31:25 EDT (Wed, 12 Sep 2007)
@@ -22,6 +22,7 @@
 
 #include <locale>
 #include <boost/cerrno.hpp>
+#include <boost/system/error_code.hpp>
 
 namespace
 {
@@ -125,7 +126,7 @@
         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 @@
         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-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk