From e7503fc7a2b6de8b75d57543615b8af6f0ef6fed Mon Sep 17 00:00:00 2001 From: Nicolas Fauvet Date: Thu, 19 Jan 2017 12:59:35 +0100 Subject: [PATCH] fix macro usage --- fmt/ostream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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