File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ namespace stdex
124124 constexpr it_type* cast () { return static_cast <it_type*>(this ); }
125125 constexpr const it_type* cast () const { return static_cast <const it_type*>(this ); }
126126
127- constexpr bool operator == (const it_type& other) const { return cast ()->ptr == other. ptr ; }
128- constexpr bool operator != (const it_type& other) const { return cast ()->ptr != other. ptr ; }
127+ friend constexpr bool operator == (const it_type& a, const it_type& b) { return a. cast ()->ptr == b. cast ()-> ptr ; }
128+ friend constexpr bool operator != (const it_type& a, const it_type& b) { return a. cast ()->ptr != b. cast ()-> ptr ; }
129129 constexpr it_type operator - (size_type amount) const { return it_type{ cast ()->ptr - amount }; }
130130 constexpr size_type operator - (const it_type& other) const { return size_type (cast ()->ptr - other.ptr ); }
131131 constexpr it_type operator + (size_type amount) const { return it_type{ cast ()->ptr + amount }; }
You can’t perform that action at this time.
0 commit comments