diff options
-rw-r--r-- | src/exception.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exception.h b/src/exception.h index 2817f261..6749b684 100644 --- a/src/exception.h +++ b/src/exception.h @@ -32,7 +32,7 @@ namespace cru { throw HResultError(h_result); } - inline void ThrowIfFailed(const HRESULT h_result, const std::string& message) { + inline void ThrowIfFailed(const HRESULT h_result, const std::string_view& message) { if (FAILED(h_result)) throw HResultError(h_result, message); } |