diff --git a/math/sound-of-sorting/Makefile b/math/sound-of-sorting/Makefile index 9d400e75d572..782354a8691d 100644 --- a/math/sound-of-sorting/Makefile +++ b/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 diff --git a/math/sound-of-sorting/files/patch-src_SortAlgo.h b/math/sound-of-sorting/files/patch-src_SortAlgo.h new file mode 100644 index 000000000000..8bdbf006f020 --- /dev/null +++ b/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::iteratorget_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