Changeset 20814
- Timestamp:
- 09/16/07 19:52:57 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/vpr/md/POSIX/Util/ErrorImplPosix.cpp
r19861 r20814 35 35 36 36 #include <vpr/vprConfig.h> 37 #include < string.h>37 #include <cstring> 38 38 #include <errno.h> 39 39 #include <vpr/md/POSIX/Util/ErrorImplPosix.h> … … 45 45 std::string ErrorImplPosix::getCurrentErrorMsg() 46 46 { 47 const char* err_str(st rerror(errno));47 const char* err_str(std::strerror(errno)); 48 48 49 49 if ( NULL != err_str ) … … 57 57 } 58 58 59 void ErrorImplPosix::outputCurrentError (std::ostream& out,60 const std::string& prefix)59 void ErrorImplPosix::outputCurrentError(std::ostream& out, 60 const std::string& prefix) 61 61 { 62 const char* err_str = st rerror(errno);62 const char* err_str = std::strerror(errno); 63 63 64 64 out << "Error (POSIX): " << prefix << " (" << errno; juggler/trunk/modules/vapor/vpr/md/POSIX/Util/ErrorImplPosix.h
r19729 r20814 38 38 39 39 #include <vpr/vprConfig.h> 40 #include <ios tream>40 #include <iosfwd> 41 41 #include <string> 42 42 #include <vpr/Util/ErrorBase.h> … … 50 50 * POSIX Implementation of cross-platform error reporting class. 51 51 */ 52 class VPR_CLASS_APIErrorImplPosix : public ErrorBase52 class ErrorImplPosix : public ErrorBase 53 53 { 54 54 public: … … 56 56 static std::string getCurrentErrorMsg(); 57 57 58 static void outputCurrentError(std::ostream& out, const std::string& prefix); 58 static void outputCurrentError(std::ostream& out, 59 const std::string& prefix); 59 60 60 61 static ErrorType getCurrentError()
