fix iterator compare

This commit is contained in:
bolero-MURAKAMI 2013-12-03 01:15:28 +09:00
parent d05d58846d
commit 4b5dd8ccc5

View file

@ -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<