diff --git a/src/util/SortList.hxx b/src/util/SortList.hxx index a60427eb7..0e13511b1 100644 --- a/src/util/SortList.hxx +++ b/src/util/SortList.hxx @@ -43,7 +43,11 @@ template constexpr void MergeList(List &dest, List &src, - std::predicate auto p) noexcept +#ifndef ANDROID + /* Android NDK r25b has no std::predicate */ + std::predicate +#endif + auto p) noexcept { const auto dest_end = dest.end(), src_end = src.end(); @@ -85,7 +89,11 @@ MergeList(List &dest, List &src, template constexpr void SortList(List &list, - std::predicate auto p) noexcept +#ifndef ANDROID + /* Android NDK r25b has no std::predicate */ + std::predicate +#endif + auto p) noexcept { using std::swap;