Skip to content

Commit 6ada263

Browse files
committed
add copy assignment operator
1 parent 8ac4eeb commit 6ada263

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/sdsl/wt_int.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,15 @@ class wt_int
743743
intersect_range_t(size_type off,size_type ns,size_type lvl,value_type _sym)
744744
: sym(_sym) , offset(off) , node_size(ns) , level(lvl) {}
745745

746+
intersect_range_t& operator=(const intersect_range_t& ir) {
747+
ranges = ir.ranges;
748+
sym = ir.sym;
749+
offset = ir.offset;
750+
node_size = ir.node_size;
751+
level = ir.level;
752+
return *this;
753+
}
754+
746755
public:
747756
std::vector<p_t> ranges;
748757
value_type sym = 0;

0 commit comments

Comments
 (0)