Fixes conflict with max macro from windows.h

The fix prevents macro expansion to fix the conflict between
std::numeric_limits<T>::max and 'max' macro defined in <windows.h>
This commit is contained in:
Alexey Malov 2017-05-25 16:17:32 +03:00
parent 1f82596e1d
commit cc75c0e3be

View File

@ -79,7 +79,7 @@ namespace details
template <typename SizeType> template <typename SizeType>
struct SizeTypeTraits struct SizeTypeTraits
{ {
static const SizeType max_value = std::numeric_limits<SizeType>::max(); static const SizeType max_value = (std::numeric_limits<SizeType>::max)();
}; };
template <typename... Ts> template <typename... Ts>