diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-06-11 16:35:31 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-06-11 16:35:31 +0200 |
commit | 1ae7cdd512a28a973aaa087f4516baca1cae665b (patch) | |
tree | 9853eecd08e3669ba8143cd9c7bb2d0efd7342a5 /src/common/Utilities/StringFormat.h | |
parent | 2abf19e83286bdc60765bdc1caf3a78c900e2d99 (diff) |
Core/Common: Update PCH content to include most commonly used headers
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r-- | src/common/Utilities/StringFormat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h index 2016eab0ba3..f7f2b7c300b 100644 --- a/src/common/Utilities/StringFormat.h +++ b/src/common/Utilities/StringFormat.h @@ -125,6 +125,6 @@ struct fmt::formatter<Optional<T>, Char> : formatter<T, Char> // allow implicit enum to int conversions for formatting template <typename E, std::enable_if_t<std::is_enum_v<E>, std::nullptr_t> = nullptr> -auto format_as(E e) { return std::underlying_type_t<E>(e); } +inline constexpr auto format_as(E e) { return static_cast<std::underlying_type_t<E>>(e); } #endif |