aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Utilities')
-rw-r--r--src/common/Utilities/StringConvert.h3
-rw-r--r--src/common/Utilities/StringFormat.h2
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