Skip to content

Commit

Permalink
Suppress gcc warning on privates-only class
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 committed Dec 9, 2020
1 parent a6fafe2 commit f0b7578
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 f0b7578

Please sign in to comment.