mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-11 13:09:18 +00:00
20 lines
578 B
Diff
20 lines
578 B
Diff
--- a/src/object/object-set.cpp
|
|
+++ b/src/object/object-set.cpp
|
|
@@ -12,6 +12,7 @@
|
|
|
|
#include "object-set.h"
|
|
|
|
+#include <boost/algorithm/minmax_element.hpp>
|
|
#include <boost/range/adaptor/filtered.hpp>
|
|
#include <boost/range/adaptor/transformed.hpp>
|
|
#include <glib.h>
|
|
@@ -263,7 +264,7 @@
|
|
auto const& n = nodes;
|
|
#endif
|
|
|
|
- return *std::max_element(n.begin(), n.end(), sp_repr_compare_position_bool);
|
|
+ return *boost::first_max_element(n.begin(), n.end(), sp_repr_compare_position_bool);
|
|
}
|
|
|
|
void ObjectSet::set(SPObject *object, bool persist_selection_context) {
|