File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1291,15 +1291,11 @@ class indexed_accessor_range_base {
12911291 }
12921292
12931293 // / Compare this range with another.
1294- template <typename OtherT>
1295- friend bool operator ==(const indexed_accessor_range_base &lhs,
1296- const OtherT &rhs) {
1297- return std::equal (lhs.begin (), lhs.end (), rhs.begin (), rhs.end ());
1298- }
1299- template <typename OtherT>
1300- friend bool operator !=(const indexed_accessor_range_base &lhs,
1301- const OtherT &rhs) {
1302- return !(lhs == rhs);
1294+ template <typename OtherT> bool operator ==(const OtherT &rhs) const {
1295+ return std::equal (begin (), end (), rhs.begin (), rhs.end ());
1296+ }
1297+ template <typename OtherT> bool operator !=(const OtherT &rhs) const {
1298+ return !(*this == rhs);
13031299 }
13041300
13051301 // / Return the size of this range.
You can’t perform that action at this time.
0 commit comments