Skip to content

Commit

Permalink
math/sound-of-sorting: fix build on -CURRENT
Browse files Browse the repository at this point in the history
  • Loading branch information
stesser committed Jan 5, 2024
1 parent 18c0f53 commit 31ec026
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion math/sound-of-sorting/Makefile
@@ -1,7 +1,7 @@
PORTNAME= sound-of-sorting
PORTVERSION= 0.6.5
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= math

MAINTAINER= se@FreeBSD.org
Expand Down
31 changes: 31 additions & 0 deletions math/sound-of-sorting/files/patch-src_SortAlgo.h
@@ -0,0 +1,31 @@
--- src/SortAlgo.h.orig 2017-12-23 08:39:32 UTC
+++ src/SortAlgo.h
@@ -164,22 +164,22 @@ class MyIterator : public std::iterator<std::random_ac
reference operator[](const difference_type& n) const
{ return m_array->get_mutable(m_pos + n); }

- bool operator==(const MyIterator& r)
+ bool operator==(const MyIterator& r) const
{ return (m_array == r.m_array) && (m_pos == r.m_pos); }

- bool operator!=(const MyIterator& r)
+ bool operator!=(const MyIterator& r) const
{ return (m_array != r.m_array) || (m_pos != r.m_pos); }

- bool operator<(const MyIterator& r)
+ bool operator<(const MyIterator& r) const
{ return (m_array == r.m_array ? (m_pos < r.m_pos) : (m_array < r.m_array)); }

- bool operator>(const MyIterator& r)
+ bool operator>(const MyIterator& r) const
{ return (m_array == r.m_array ? (m_pos > r.m_pos) : (m_array > r.m_array)); }

- bool operator<=(const MyIterator& r)
+ bool operator<=(const MyIterator& r) const
{ return (m_array == r.m_array ? (m_pos <= r.m_pos) : (m_array <= r.m_array)); }

- bool operator>=(const MyIterator& r)
+ bool operator>=(const MyIterator& r) const
{ return (m_array == r.m_array ? (m_pos >= r.m_pos) : (m_array >= r.m_array)); }

difference_type operator+(const MyIterator& r2) const

0 comments on commit 31ec026

Please sign in to comment.