From 11742a09c7e575393ae482b3219030caadb34743 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 26 Dec 2024 09:39:01 -0800 Subject: [PATCH] Clarify that format_string should be used instead of fstring --- include/fmt/base.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 2266cb7c..8a4e8818 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2659,7 +2659,8 @@ template struct runtime_format_string { */ inline auto runtime(string_view s) -> runtime_format_string<> { return {{s}}; } -/// A compile-time format string. +/// A compile-time format string. Use `format_string` in the public API to +/// prevent type deduction. template struct fstring { private: static constexpr int num_static_named_args =