Make YAML::detail::iterator_base comparison operators const (#472)

This commit is contained in:
Andrew
2017-03-02 19:06:17 +03:00
committed by Jesse Beder
parent bedb28fdb4
commit c5457e1c6a

View File

@@ -61,12 +61,12 @@ class iterator_base : public std::iterator<std::forward_iterator_tag, V,
}
template <typename W>
bool operator==(const iterator_base<W>& rhs) {
bool operator==(const iterator_base<W>& rhs) const {
return m_iterator == rhs.m_iterator;
}
template <typename W>
bool operator!=(const iterator_base<W>& rhs) {
bool operator!=(const iterator_base<W>& rhs) const {
return m_iterator != rhs.m_iterator;
}