From f0b75782874359361534dbf320522b2366964c61 Mon Sep 17 00:00:00 2001 From: Sven Fink Date: Mon, 7 Dec 2020 10:02:04 +0100 Subject: [PATCH] Suppress gcc warning on privates-only class Since gcc 9 it warns about is_streamable to have only private methods. Add explicit default ctor instead of suppression --- include/fmt/ostream.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index 29c58ec13b15..411588c626a5 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -85,6 +85,8 @@ template class is_streamable { using result = decltype(test(0)); public: + is_streamable() = default; + static const bool value = result::value; };