Skip to content

Commit

Permalink
[packagemanager] Fix use of a C++20 feature not available on GCC 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 5, 2022
1 parent 2d018cc commit b7652dd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <score/application/ApplicationContext.hpp>
#include <score/tools/File.hpp>

#include <ossia/detail/algorithms.hpp>
#include <ossia/detail/ssize.hpp>

#include <QDir>
Expand Down Expand Up @@ -223,7 +224,7 @@ void PackagesModel::addAddon(Package e)
void PackagesModel::removeAddon(Package e)
{
beginResetModel();
std::erase_if(m_vec, [&e](auto p){ return e.name == p.name; });
ossia::remove_erase_if(m_vec, [&e](auto p){ return e.name == p.name; });
endResetModel();
}

Expand Down

0 comments on commit b7652dd

Please sign in to comment.