diff options
| author | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-11 21:51:49 -0500 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-09-21 01:19:23 +0200 |
| commit | 63467559b20682a6b9e4ec43c6b43456e1fca111 (patch) | |
| tree | 82d5e151ffc824be2e3a6a7fa33daedf2c144fb8 /Source/Core/Common/HRWrap.cpp | |
| parent | 965283c2634de96338eb106369b5d6abf469dd40 (diff) | |
fmt 10.0.0-10.1.1 compile fixes
Implicit conversion operators and enums was removed for parity with std::format (https://github.com/fmtlib/fmt/commit/fce74caa15b24cbc0fcafe4706692cb06cb0b815).
Diffstat (limited to 'Source/Core/Common/HRWrap.cpp')
| -rw-r--r-- | Source/Core/Common/HRWrap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/HRWrap.cpp b/Source/Core/Common/HRWrap.cpp index d815078fec..54fda4a890 100644 --- a/Source/Core/Common/HRWrap.cpp +++ b/Source/Core/Common/HRWrap.cpp @@ -3,8 +3,6 @@ #include "HRWrap.h" -#include <winrt/base.h> - namespace Common { std::string GetHResultMessage(HRESULT hr) @@ -12,4 +10,8 @@ std::string GetHResultMessage(HRESULT hr) auto err = winrt::hresult_error(hr); return winrt::to_string(err.message()); } +std::string GetHResultMessage(const winrt::hresult& hr) +{ + return GetHResultMessage(hr.value); +} } // namespace Common |
