diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
| commit | 55f0715ad4edf4485bc7b35e49fbd883ce760e47 (patch) | |
| tree | 2b016eb261d2138a56c00a682abfefa96174a696 /Source/Core/Common/StringUtil.h | |
| parent | cc0ce62e7ff283919c95c12a1c8e3b0887271690 (diff) | |
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).
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 2351c3f720..9a1ddcba16 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -16,10 +16,10 @@ #include <sstream> #include <string> #include <type_traits> +#include <utility> #include <vector> #include "Common/CommonTypes.h" -#include "Common/EnumUtils.h" #include "Common/TypeUtils.h" std::string StringFromFormatV(const char* format, va_list args); @@ -157,7 +157,7 @@ std::string ValueToString(s64 value); std::string ValueToString(bool value); std::string ValueToString(Common::Enum auto value) { - return ValueToString(Common::ToUnderlying(value)); + return ValueToString(std::to_underlying(value)); } // Generates an hexdump-like representation of a binary data blob. |
