From b9201d3c07ecbd690117d248bec238e3657b57b9 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 15 Aug 2023 20:11:02 +0200 Subject: Dep/fmt: Upgrade to 9.1.0 (cherry picked from commit 17b20a33531b386eabcd44192a2574de72e64340) --- 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 b4d4d9e5743..c95039efea4 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