mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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:
parent
1f82596e1d
commit
cc75c0e3be
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user