File tree 1 file changed +9
-5
lines changed 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1291,11 +1291,15 @@ class indexed_accessor_range_base {
1291
1291
}
1292
1292
1293
1293
// / Compare this range with another.
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);
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);
1299
1303
}
1300
1304
1301
1305
// / Return the size of this range.
You can’t perform that action at this time.
0 commit comments