mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-26 04:37:50 -05:00
c++23: Replace Common::ToUnderlying with std::to_underlying
Requires at least GCC 11, Clang 13, MSVC 19.30 (VS2022 17.0), or AppleClang 13.1.6 (XCode 13.3).
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
#include <utility>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/EnumUtils.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
|
||||
@@ -273,7 +273,7 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color)
|
||||
else
|
||||
{
|
||||
ERROR_LOG_FMT(VIDEO, "Unknown present error {:#010X} {}, please report.",
|
||||
Common::ToUnderlying(res), VkResultToString(res));
|
||||
std::to_underlying(res), VkResultToString(res));
|
||||
m_swap_chain->RecreateSwapChain();
|
||||
}
|
||||
|
||||
@@ -286,8 +286,8 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color)
|
||||
}
|
||||
else
|
||||
{
|
||||
PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}",
|
||||
Common::ToUnderlying(res), VkResultToString(res));
|
||||
PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", std::to_underlying(res),
|
||||
VkResultToString(res));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user