diff --git a/fmt/ostream.h b/fmt/ostream.h index d7a9a9e2..d01c1ab4 100644 --- a/fmt/ostream.h +++ b/fmt/ostream.h @@ -74,7 +74,7 @@ struct ConvertToIntImpl { // Write the content of w to os. void write(std::ostream &os, Writer &w); -#ifdef FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES +#if FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES template class is_streamable { template @@ -125,7 +125,7 @@ typename std::enable_if< BasicWriter& >::type operator<<(BasicWriter &writer, const T &value) { -#ifdef FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES +#if FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES static_assert(internal::is_streamable::value, "T must be Streamable"); #endif