From 9293f7072e3155aedfd00cc25f9dbcb5aad539c6 Mon Sep 17 00:00:00 2001 From: Finkman Date: Wed, 9 Dec 2020 15:55:17 +0100 Subject: [PATCH] Suppress gcc warning on privates-only class (#2053) 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 29c58ec1..411588c6 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; };