Commit c5457e1c authored by Andrew's avatar Andrew Committed by Jesse Beder
Browse files

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

parent bedb28fd
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment