diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-01-08 22:03:44 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-01-08 22:03:44 +0100 |
commit | 17b20a33531b386eabcd44192a2574de72e64340 (patch) | |
tree | d31f0c39213ad07081db009060773d594e2083e9 /src/common/Utilities/StringFormat.h | |
parent | d791afae1dfcfaf592326f787755ca32d629e4d3 (diff) |
Dep/fmt: Upgrade to 9.1.0
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r-- | src/common/Utilities/StringFormat.h | 7 |
1 files changed, 6 insertions, 1 deletions
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<typename... Args> - using FormatString = std::string_view; + using FormatString = fmt::format_string<Args...>; /// Default TC string format function. template<typename... Args> @@ -56,6 +56,11 @@ namespace Trinity { return fmt.empty(); } + + inline constexpr bool IsFormatEmptyOrNull(fmt::string_view fmt) + { + return fmt.size() == 0; + } } #endif |