File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -771,17 +771,17 @@ class int_vector
771
771
return ((*data1) & bits::lo_set[l]) == ((*data2) & bits::lo_set[l]);
772
772
}
773
773
774
- // ! Equality operator for an arbitrary container .
774
+ // ! Equality operator for two int_vectors .
775
775
/* ! Note that this function is slow since it compares element by element
776
776
* and cannot compare the bit representations of the containers.
777
777
* Two containers are equal if
778
778
* - sizes are equal and
779
779
* - its elements are equal.
780
780
*/
781
- template <class container >
782
- friend bool operator ==(int_vector<t_width > const & lhs, container const & rhs) noexcept
781
+ template <uint8_t t_width2 >
782
+ bool operator ==(int_vector<t_width2 > const & v) const noexcept
783
783
{
784
- return std::equal (lhs. begin (), lhs. end (), rhs .begin ());
784
+ return ( this -> size () == v. size ()) && std::equal (this -> begin (), this -> end (), v .begin ());
785
785
}
786
786
787
787
// ! Inequality operator for two int_vectors.
You can’t perform that action at this time.
0 commit comments