mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix iterator compare
This commit is contained in:
parent
d05d58846d
commit
4b5dd8ccc5
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ namespace sprout {
|
|||
bool
|
||||
>::type
|
||||
operator==(sprout::detail::forward_item_iterator<List1> const& lhs, sprout::detail::forward_item_iterator<List2> const& rhs) {
|
||||
return !(lhs.is_initialized() || rhs.is_initialized()) || &*lhs == &*rhs;
|
||||
return !lhs.is_initialized() ? !rhs.is_initialized()
|
||||
: rhs.is_initialized() && &*lhs == &*rhs
|
||||
;
|
||||
}
|
||||
template<typename List1, typename List2>
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
|
|
Loading…
Reference in a new issue