Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit dff2bd0

Browse files
author
Jakob Riedle
committed
JR: Fixed another bug in iterator comparisons
1 parent a593599 commit dff2bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/tinyutf8/tinyutf8.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,11 @@ namespace tiny_utf8
652652
template<typename Container, bool Raw>
653653
static inline bool operator>=( const const_reverse_iterator<Container, true>& lhs , const const_reverse_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_raw_index() <= rhs.get_raw_index(); }
654654
template<typename Container, bool Raw>
655-
static inline bool operator<( const const_iterator<Container, true>& lhs , const const_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_index() < rhs.get_raw_index(); }
655+
static inline bool operator<( const const_iterator<Container, true>& lhs , const const_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_raw_index() < rhs.get_raw_index(); }
656656
template<typename Container, bool Raw>
657657
static inline bool operator<( const const_reverse_iterator<Container, true>& lhs , const const_reverse_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_raw_index() > rhs.get_raw_index(); }
658658
template<typename Container, bool Raw>
659-
static inline bool operator<=( const const_iterator<Container, true>& lhs , const const_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_index() <= rhs.get_raw_index(); }
659+
static inline bool operator<=( const const_iterator<Container, true>& lhs , const const_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_raw_index() <= rhs.get_raw_index(); }
660660
template<typename Container, bool Raw>
661661
static inline bool operator<=( const const_reverse_iterator<Container, true>& lhs , const const_reverse_iterator<Container, Raw>& rhs ) noexcept { return lhs.get_raw_index() >= rhs.get_raw_index(); }
662662

0 commit comments

Comments
 (0)