Boost 1.5 with XML Why u no have ptree!?

Started by
1 comment, last by SolDirix 9 years, 3 months ago

Ok, so for some effing reason. The new Boost libraries seem to have changed the xml loader libraries.

I can't seem to find the Ptree class anywhere. For example, if I type:

boost::property_tree::ptree ptree1;

I get an error, and I looked inside of the property_tree namespace, and ptree appears to be missing.

There are tutorials like this one: http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/tutorial.html

However, this doesn't apply to the later versions. I am suprised nobody has written a topic about this yet. How do you read in an xml file using Boost Property_tree!?

View my game dev blog here!

Advertisement

ptree is just a typedef of basic_ptree. It is defined in boost/property_tree/ptree_fwd.hpp (which is included by ptree.hpp)

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

ptree is just a typedef of basic_ptree. It is defined in boost/property_tree/ptree_fwd.hpp (which is included by ptree.hpp)

I seriously don't know how I missed that :/.

View my game dev blog here!

This topic is closed to new replies.

Advertisement