diff --git a/fmt/format.h b/fmt/format.h index 6a234383..fce1511b 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1287,6 +1287,7 @@ struct ConvertToIntImpl2 { template struct ConvertToInt { enum { +#pragma warning(suppress: 4244) enable_conversion = sizeof(fmt::internal::convert(get())) == sizeof(Yes) }; enum { value = ConvertToIntImpl2::value }; diff --git a/fmt/ostream.h b/fmt/ostream.h index 6848aac2..102fb665 100644 --- a/fmt/ostream.h +++ b/fmt/ostream.h @@ -64,6 +64,7 @@ template struct ConvertToIntImpl { // Convert to int only if T doesn't have an overloaded operator<<. enum { +#pragma warning(suppress: 4244) value = sizeof(convert(get() << get())) == sizeof(No) }; };