forked from fmtlib/fmt
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
This commit is contained in:
@@ -85,6 +85,8 @@ template <typename T, typename Char> class is_streamable {
|
|||||||
using result = decltype(test<T>(0));
|
using result = decltype(test<T>(0));
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
is_streamable() = default;
|
||||||
|
|
||||||
static const bool value = result::value;
|
static const bool value = result::value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user