Skip to content

Commit

Permalink
container: workaround for the max() ambiguity with MAX macro (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelpokutnev authored Jul 6, 2023
1 parent 32871fe commit 1244dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entt/container/dense_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ class dense_map {
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) {
Expand Down
2 changes: 1 addition & 1 deletion src/entt/container/dense_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ class dense_set {
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) {
Expand Down

0 comments on commit 1244dbe

Please sign in to comment.