Parenthesize std::min for windows.h macro collision avoidance.

This commit is contained in:
Jerry Evans 2015-11-26 12:45:01 +00:00
parent 0ed369f7c9
commit 05ac20f799

View File

@ -256,7 +256,7 @@ private:
template <typename F>
auto transform(size_t beg, size_t end, F f) const -> vector<typename std::remove_const<decltype(f(SemanticValue()))>::type> {
vector<typename std::remove_const<decltype(f(SemanticValue()))>::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]));
}