diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-cpp/tree/files/3.18-const.patch | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | srcux-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz srcux-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz srcux-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/tree/files/3.18-const.patch')
| -rw-r--r-- | dev-cpp/tree/files/3.18-const.patch | 23 |
1 files changed, 23 insertions, 0 deletions
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 <kasper.peeters@phi-sci.com> +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); + } |
