From cc75c0e3becc964fc1142534875f455ebc0d597c Mon Sep 17 00:00:00 2001 From: Alexey Malov Date: Thu, 25 May 2017 16:17:32 +0300 Subject: [PATCH] Fixes conflict with max macro from windows.h The fix prevents macro expansion to fix the conflict between std::numeric_limits::max and 'max' macro defined in --- include/gsl/multi_span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/multi_span b/include/gsl/multi_span index 319aded..2ac8457 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -79,7 +79,7 @@ namespace details template struct SizeTypeTraits { - static const SizeType max_value = std::numeric_limits::max(); + static const SizeType max_value = (std::numeric_limits::max)(); }; template