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
This commit is contained in:
Sven Fink 2020-12-07 10:02:04 +01:00
parent a6fafe2f01
commit f0b7578287

View File

@ -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;
};