From 7aebbf3c5016e57b96a06d85fcdb636ec5a7097b Mon Sep 17 00:00:00 2001 From: RaptorFactor Date: Thu, 12 Jan 2017 23:52:23 -0800 Subject: [PATCH] Inhibit macro expansion for call to numeric_limits::max in SizeTypeTraits. Resolves warning C4003 which is generated under MSVC in some circumstances. --- gsl/multi_span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsl/multi_span b/gsl/multi_span index 7bee7a3..37e310c 100644 --- a/gsl/multi_span +++ b/gsl/multi_span @@ -87,7 +87,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