fix compile on windows

undefine min, max if including Windows.h
This commit is contained in:
Artem Umerov 2022-06-29 17:53:19 +03:00 committed by GitHub
parent 954b10ad3b
commit 61273ec8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3795,7 +3795,8 @@ template<typename OfType, typename T,
bool OfTypeSigned = std::is_signed<OfType>::value, bool OfTypeSigned = std::is_signed<OfType>::value,
bool TSigned = std::is_signed<T>::value> bool TSigned = std::is_signed<T>::value>
struct value_in_range_of_impl2; struct value_in_range_of_impl2;
#undef min
#undef max
template<typename OfType, typename T> template<typename OfType, typename T>
struct value_in_range_of_impl2<OfType, T, false, false> struct value_in_range_of_impl2<OfType, T, false, false>
{ {