You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes iterators, in particular, return a reference to an internal attr object owned by the iterator. This means that the reference is only valid for the lifetime of the iterator and code like this is invalid:
xml::attributes::attr& a = *(root.get_attributes().begin());
// iterator freed, including its attr object, 'a' no longer valid
a.set_namespace(xml::namespaces::ns("href2", "p2"));
This is extremely unexpected for a C++ programmer.
The text was updated successfully, but these errors were encountered:
Attributes iterators, in particular, return a reference to an internal attr object owned by the iterator. This means that the reference is only valid for the lifetime of the iterator and code like this is invalid:
This is extremely unexpected for a C++ programmer.
The text was updated successfully, but these errors were encountered: