[property_tree] XML parser broken in 1.39.0

Calling boost::property_tree::xml_parser::read_xml() to parse a XML file and populate a property_tree doesn't work anymore in Boost 1.39.0 (at least not in Visual C++ 2008). The compiler error I see is: boost\iterator\iterator_adaptor.hpp(230) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ] The property_tree headers include boost\spirit\home\classic\iterator\position_iterator.hpp which includes boost\iterator\iterator_adaptor.hpp. I also see this warning: Warning: This header is deprecated. Please use: boost/spirit/include/classic.hpp Warning: This header is deprecated. Please use: boost/spirit/include/classic_position_iterator.hpp It looks like as if a change in Boost.Spirit or Boost.Iterator broke the XML parser. Does Boost.PropertyTree have a maintainer who can look into this? Boris PS: As it turns out it's broken in Boost 1.38.0, too. With 1.36.0 I don't get a compile error (1.37.0 I don't have installed and can't test).

2009/5/14 Boris Schaeling <boris@highscore.de>:
Calling boost::property_tree::xml_parser::read_xml() to parse a XML file and populate a property_tree doesn't work anymore in Boost 1.39.0 (at least not in Visual C++ 2008). The compiler error I see is:
boost\iterator\iterator_adaptor.hpp(230) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ]
Are you using the version from the vault? It's a bit out of date, this is fixed in trunk. Daniel

On Thu, 14 May 2009 17:27:14 +0200, Daniel James <daniel_james@fmail.co.uk> wrote:
2009/5/14 Boris Schaeling <boris@highscore.de>:
Calling boost::property_tree::xml_parser::read_xml() to parse a XML file and populate a property_tree doesn't work anymore in Boost 1.39.0 (at least not in Visual C++ 2008). The compiler error I see is:
boost\iterator\iterator_adaptor.hpp(230) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ]
Are you using the version from the vault? It's a bit out of date, this is fixed in trunk.
Ah, good to know that someone is working on the library. I thought the version from the vault is still up-to-date. I'll try the one in the trunk. Boris

On Thu, 14 May 2009 17:27:14 +0200, Daniel James <daniel_james@fmail.co.uk> wrote:
2009/5/14 Boris Schaeling <boris@highscore.de>:
Calling boost::property_tree::xml_parser::read_xml() to parse a XML file and populate a property_tree doesn't work anymore in Boost 1.39.0 (at least not in Visual C++ 2008). The compiler error I see is:
boost\iterator\iterator_adaptor.hpp(230) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ]
Are you using the version from the vault? It's a bit out of date, this is fixed in trunk.
After pulling the version from the trunk I get many other errors as the interface of the ptree class changed. Is there any tutorial somewhere (even a small one would be fine just to see how to get and set values now)? There is no documentation at all in the trunk unfortunately. Boris

On Thu, 14 May 2009 20:40:44 +0200, Boris Schaeling <boris@highscore.de> wrote:
On Thu, 14 May 2009 17:27:14 +0200, Daniel James <daniel_james@fmail.co.uk> wrote:
2009/5/14 Boris Schaeling <boris@highscore.de>:
Calling boost::property_tree::xml_parser::read_xml() to parse a XML file and populate a property_tree doesn't work anymore in Boost 1.39.0 (at least not in Visual C++ 2008). The compiler error I see is:
boost\iterator\iterator_adaptor.hpp(230) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ]
Are you using the version from the vault? It's a bit out of date, this is fixed in trunk.
After pulling the version from the trunk I get many other errors as the interface of the ptree class changed. Is there any tutorial somewhere (even a small one would be fine just to see how to get and set values now)? There is no documentation at all in the trunk unfortunately.
I managed to adapt my code meanwhile (and use now the new path class). Boris

Boris Schaeling wrote:
After pulling the version from the trunk I get many other errors as the interface of the ptree class changed. Is there any tutorial somewhere (even a small one would be fine just to see how to get and set values now)? There is no documentation at all in the trunk unfortunately. Yes there is, but it's in quickbook form. To read it, you need a quickbook toolchain.
Sebastian
participants (3)
-
Boris Schaeling
-
Daniel James
-
Sebastian Redl