From 17b20a33531b386eabcd44192a2574de72e64340 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 8 Jan 2023 22:03:44 +0100 Subject: Dep/fmt: Upgrade to 9.1.0 --- src/common/Utilities/StringFormat.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/common/Utilities/StringFormat.h') diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h index 5802ae8d617..7c136185f4a 100644 --- a/src/common/Utilities/StringFormat.h +++ b/src/common/Utilities/StringFormat.h @@ -23,7 +23,7 @@ namespace Trinity { template - using FormatString = std::string_view; + using FormatString = fmt::format_string; /// Default TC string format function. template @@ -56,6 +56,11 @@ namespace Trinity { return fmt.empty(); } + + inline constexpr bool IsFormatEmptyOrNull(fmt::string_view fmt) + { + return fmt.size() == 0; + } } #endif -- cgit v1.2.3