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 | |
| parent | 2abf19e83286bdc60765bdc1caf3a78c900e2d99 (diff) | |
Core/Common: Update PCH content to include most commonly used headers
Diffstat (limited to 'src/common/Utilities')
| -rw-r--r-- | src/common/Utilities/StringConvert.h | 3 | ||||
| -rw-r--r-- | src/common/Utilities/StringFormat.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/Utilities/StringConvert.h b/src/common/Utilities/StringConvert.h index 0d11dbb6667..ebe33cee721 100644 --- a/src/common/Utilities/StringConvert.h +++ b/src/common/Utilities/StringConvert.h @@ -22,12 +22,13 @@ #include "Errors.h" #include "Optional.h" #include "Types.h" -#include "Util.h" #include <charconv> #include <string> #include <string_view> #include <type_traits> +TC_COMMON_API bool StringEqualI(std::string_view str1, std::string_view str2); + namespace Trinity::Impl::StringConvertImpl { template <typename T, typename = void> struct For 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 |
