amorlzu / pugixml

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

Boost.foreach on xpath_node_set #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

The boost.foreach makro does not work with xpath_node_set.
For instance,

BOOST_FOREACH(pugi::xpath_node node, parent.select_nodes(xpath)

does not compile with pugixml version 1.4 and boost 1.48 on Ubuntu 12.04.

I could resolve this issue locally by adding a non-const iterator to pugixml.hpp

        typedef const xpath_node* iterator;

I don't think that this is too intrusive as xpath_node has no non-const 
methods. Is it possible to add this to the interface?

Best
Stefan

Original issue reported on code.google.com by stefan.f...@googlemail.com on 24 Mar 2014 at 10:04

GoogleCodeExporter commented 9 years ago
Fixed in r998.

Original comment by arseny.k...@gmail.com on 4 May 2014 at 5:44