summaryrefslogtreecommitdiff
path: root/zen/file_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/file_error.h')
-rw-r--r--zen/file_error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/file_error.h b/zen/file_error.h
index 73cfa17a..9276e8c5 100644
--- a/zen/file_error.h
+++ b/zen/file_error.h
@@ -38,10 +38,10 @@ DEFINE_NEW_FILE_ERROR(ErrorDifferentVolume);
//CAVEAT: evalulate global error code *before* "throw" statement which may overwrite error code
//due to a memory allocation before it creates the thrown instance! (e.g. affects MinGW + Win XP!!!)
-inline
+template <class FE = FileError> inline
void throwFileError(const std::wstring& msg, const std::wstring& functionName, const ErrorCode ec) //throw FileError
{
- throw FileError(msg, formatSystemError(functionName, ec));
+ throw FE(msg, formatSystemError(functionName, ec));
}
bgstack15