amorlzu / pugixml

Automatically exported from code.google.com/p/pugixml
0 stars 0 forks source link

Make xml_named_node_iterator a bidirectional_iterator #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First, thanx for the effort you're doin' with this

Would it be possible to make the xml_named_node_iterator to become a 
bidirectional_iterator ?

As far as I understand (perhaps I'm naive), it wouldn't be that hard

Best regards,
Kri!lo

Original issue reported on code.google.com by krist...@hotmail.com on 24 Jan 2014 at 3:03

GoogleCodeExporter commented 9 years ago
It's not too hard; bidirectional iterators are more complicated because you 
need to handle end() in a special way to make sure std::advance(end(), -1) 
gives you the last element.

Original comment by arseny.k...@gmail.com on 27 Jan 2014 at 12:47

GoogleCodeExporter commented 9 years ago
Fixed in r960.

Original comment by arseny.k...@gmail.com on 27 Jan 2014 at 3:54