container: workaround for the max() ambiguity with MAX macro (#1034)

This commit is contained in:
pokutnev
2023-07-06 14:42:36 +02:00
committed by Michele Caini
parent ad6f4a3dd8
commit 51704ee7ce
2 changed files with 2 additions and 2 deletions

View File

@@ -989,7 +989,7 @@ public:
sparse.first().resize(sz);
for(auto &&elem: sparse.first()) {
elem = std::numeric_limits<size_type>::max();
elem = (std::numeric_limits<size_type>::max)();
}
for(size_type pos{}, last = size(); pos < last; ++pos) {

View File

@@ -886,7 +886,7 @@ public:
sparse.first().resize(sz);
for(auto &&elem: sparse.first()) {
elem = std::numeric_limits<size_type>::max();
elem = (std::numeric_limits<size_type>::max)();
}
for(size_type pos{}, last = size(); pos < last; ++pos) {