Skip to content

Commit

Permalink
Suppress gcc warning on privates-only class (#2053)
Browse files Browse the repository at this point in the history
Since gcc 9 it warns about is_streamable to have only private methods.
Add explicit default ctor instead of suppression
  • Loading branch information
Finkman authored Dec 9, 2020
1 parent c20874c commit 9293f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ template <typename T, typename Char> class is_streamable {
using result = decltype(test<T>(0));

public:
is_streamable() = default;

static const bool value = result::value;
};

Expand Down

0 comments on commit 9293f70

Please sign in to comment.