From: Samuel Just Date: Sat, 14 Oct 2023 20:27:51 +0000 (-0700) Subject: common/fmt_common: add has_formatter concept X-Git-Tag: v19.3.0~296^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83cb1c730a8ad08796b6f36a10673faf3b8bcad2;p=ceph.git common/fmt_common: add has_formatter concept Signed-off-by: Samuel Just --- diff --git a/src/common/fmt_common.h b/src/common/fmt_common.h index 5db8bac43cd7..1a2a6eac9357 100644 --- a/src/common/fmt_common.h +++ b/src/common/fmt_common.h @@ -15,6 +15,10 @@ * has a begin()/end() method pair. This is a problem because we have * such classes in Crimson. */ + +template +concept has_formatter = fmt::has_formatter::value; + /** * Tagging classes that provide support for default fmtlib formatting, * by having either