Skip to content

Commit

Permalink
Fix build with old libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Oct 30, 2024
1 parent 125971c commit f689a80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void EntityFragmentsHolder::Add(EntityFragment fragment, bool update)
auto where = std::ranges::lower_bound(arr.begin(), arr.begin() + count, f);
if (*where == f)
return std::pair(where, false);
std::ranges::rotate(where, arr.begin() + count, arr.begin() + count + 1);
std::rotate(where, arr.begin() + count, arr.begin() + count + 1);
++count;
*where = f;
return std::pair(where, true);
Expand Down Expand Up @@ -68,7 +68,7 @@ void EntityFragmentsHolder::Remove(EntityFragment fragment)
if (where != arr.end())
{
*where = EntityFragment::End;
std::ranges::rotate(where, where + 1, arr.begin() + count);
std::rotate(where, where + 1, arr.begin() + count);
--count;
return std::pair(where, true);
}
Expand Down

0 comments on commit f689a80

Please sign in to comment.