Skip to content

Commit

Permalink
fix: Add single-argument ctors for node_iterator & attribute_iterator
Browse files Browse the repository at this point in the history
Ensures compatibility with the old interface
  • Loading branch information
timniederhausen committed Feb 10, 2023
1 parent f10f3b0 commit f555b31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rapidxml_iterators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ namespace rapidxml
{
}

node_iterator(xml_node<Ch>* node)
: m_cur(node)
, m_prev(0)
, m_flags(0)
{
}

node_iterator(xml_node<Ch>* node, xml_node<Ch>* prev,
unsigned char flags)
: m_cur(node)
Expand Down Expand Up @@ -137,6 +144,13 @@ namespace rapidxml
{
}

attribute_iterator(xml_attribute<Ch>* attr)
: m_cur(attr)
, m_prev(0)
, m_flags(0)
{
}

attribute_iterator(xml_attribute<Ch>* attr, xml_attribute<Ch>* prev,
unsigned char flags)
: m_cur(attr)
Expand Down

0 comments on commit f555b31

Please sign in to comment.