From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-cpp/tree/files/3.18-const.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dev-cpp/tree/files/3.18-const.patch (limited to 'dev-cpp/tree/files/3.18-const.patch') diff --git a/dev-cpp/tree/files/3.18-const.patch b/dev-cpp/tree/files/3.18-const.patch new file mode 100644 index 000000000000..580c23f7ac53 --- /dev/null +++ b/dev-cpp/tree/files/3.18-const.patch @@ -0,0 +1,23 @@ +https://github.com/kpeeters/tree.hh/commit/0ee8b5a4c3a93814bbf465ffc56c296cf84f1832 + +From: Kasper Peeters +Date: Fri, 17 Nov 2023 11:27:13 +0000 +Subject: [PATCH] Fix const-correctness for comparison. + +--- + src/tree.hh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/tree.hh b/src/tree.hh +index d460165..be45f99 100644 +--- a/src/tree.hh ++++ b/src/tree.hh +@@ -505,7 +505,7 @@ class tree { + public: + compare_nodes(StrictWeakOrdering comp) : comp_(comp) {} + +- bool operator()(const tree_node *a, const tree_node *b) ++ bool operator()(const tree_node *a, const tree_node *b) const + { + return comp_(a->data, b->data); + } -- cgit v1.3