diff --git a/fmt/ostream.h b/fmt/ostream.h index b35c414b..7559547d 100644 --- a/fmt/ostream.h +++ b/fmt/ostream.h @@ -75,8 +75,7 @@ struct ConvertToIntImpl { void write(std::ostream &os, Writer &w); template -class is_streamable -{ +class is_streamable { template static auto test(int) -> decltype(std::declval() << std::declval(), std::true_type()); @@ -123,8 +122,7 @@ typename std::enable_if< >::value, BasicWriter& >::type -operator<<(BasicWriter &writer, const T &value) -{ +operator<<(BasicWriter &writer, const T &value) { static_assert(internal::is_streamable::value, "T must be Streamable"); auto &buffer = writer.buffer();