[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 1/2] fix ctors of {MatchLeftEnd,LabeledMem}Comparator to enable sort/3 with g++-4.9



---
 libMems/Aligner.cpp | 2 +-
 libMems/Aligner.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libMems/Aligner.cpp b/libMems/Aligner.cpp
index 2fa6ee2..d3928e4 100644
--- a/libMems/Aligner.cpp
+++ b/libMems/Aligner.cpp
@@ -939,7 +939,7 @@ public:
 	MatchLeftEndComparator( unsigned seq = 0 ){
 		m_seq = seq;
 	}
-	MatchLeftEndComparator( MatchLeftEndComparator& msc ){
+	MatchLeftEndComparator( const MatchLeftEndComparator& msc ){
 		m_seq = msc.m_seq;
 	}
 	// TODO??  make this do a wraparound comparison if all is equal?
diff --git a/libMems/Aligner.h b/libMems/Aligner.h
index a4e2377..476c127 100644
--- a/libMems/Aligner.h
+++ b/libMems/Aligner.h
@@ -49,7 +49,7 @@ public:
 	LabeledMemComparator( uint seq ){
 		m_seq = seq;
 	}
-	LabeledMemComparator( LabeledMemComparator& lmc ){
+	LabeledMemComparator( const LabeledMemComparator& lmc ){
 		m_seq = lmc.m_seq;
 	}
 	boolean operator()(const LabeledMem& a, const LabeledMem& b) const{
-- 
2.3.5


Reply to: