From 05ac20f7997615bbc94595ae8339fcedd3b45845 Mon Sep 17 00:00:00 2001 From: Jerry Evans Date: Thu, 26 Nov 2015 12:45:01 +0000 Subject: [PATCH] Parenthesize std::min for windows.h macro collision avoidance. --- peglib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peglib.h b/peglib.h index 6202d9f..6ba7fc7 100644 --- a/peglib.h +++ b/peglib.h @@ -256,7 +256,7 @@ private: template auto transform(size_t beg, size_t end, F f) const -> vector::type> { vector::type> r; - end = std::min(end, size()); + end = (std::min)(end, size()); for (size_t i = beg; i < end; i++) { r.emplace_back(f((*this)[i])); }