"tests/vscode:/vscode.git/clone" did not exist on "99b540b0725e3b07f1ee0bae7ae9388c327ca718"
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, ...@@ -61,12 +61,12 @@ class iterator_base : public std::iterator<std::forward_iterator_tag, V,
} }
template <typename W> template <typename W>
bool operator==(const iterator_base<W>& rhs) { bool operator==(const iterator_base<W>& rhs) const {
return m_iterator == rhs.m_iterator; return m_iterator == rhs.m_iterator;
} }
template <typename W> template <typename W>
bool operator!=(const iterator_base<W>& rhs) { bool operator!=(const iterator_base<W>& rhs) const {
return m_iterator != rhs.m_iterator; 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