mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-05-10 09:23:30 +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
|
bool
|
||||||
>::type
|
>::type
|
||||||
operator==(sprout::detail::forward_item_iterator<List1> const& lhs, sprout::detail::forward_item_iterator<List2> const& rhs) {
|
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>
|
template<typename List1, typename List2>
|
||||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||||
|
|
Loading…
Add table
Reference in a new issue