From 63467559b20682a6b9e4ec43c6b43456e1fca111 Mon Sep 17 00:00:00 2001 From: get <45425365+Minty-Meeo@users.noreply.github.com> Date: Sun, 11 Jun 2023 21:51:49 -0500 Subject: 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). --- Source/Core/Common/HRWrap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/HRWrap.cpp') 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 - 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 -- cgit v1.2.3