diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-05-19 12:46:52 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-05-19 14:43:05 -0400 |
commit | f2bfd36a6f3eb7e7e2587268be3cc12636703d42 (patch) | |
tree | 6436772fbceb28f07bbfaee528d700159beb0cec /src/mongo/util/winutil.h | |
parent | c10e8282a7af38f8512e911a14889e14df8a2c6a (diff) | |
download | mongo-f2bfd36a6f3eb7e7e2587268be3cc12636703d42.tar.gz |
SERVER-13256: Remove pch - qualify std in headers
Diffstat (limited to 'src/mongo/util/winutil.h')
-rw-r--r-- | src/mongo/util/winutil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/winutil.h b/src/mongo/util/winutil.h index b4f38ecc9ab..d24adfa3650 100644 --- a/src/mongo/util/winutil.h +++ b/src/mongo/util/winutil.h @@ -38,12 +38,12 @@ namespace mongo { - inline string GetWinErrMsg(DWORD err) { + inline std::string GetWinErrMsg(DWORD err) { LPTSTR errMsg; ::FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, (LPTSTR)&errMsg, 0, NULL ); std::string errMsgStr = toUtf8String( errMsg ); ::LocalFree( errMsg ); - // FormatMessage() appends a newline to the end of error messages, we trim it because endl flushes the buffer. + // FormatMessage() appends a newline to the end of error messages, we trim it because std::endl flushes the buffer. errMsgStr = errMsgStr.erase( errMsgStr.length() - 2 ); std::ostringstream output; output << errMsgStr << " (" << err << ")"; |