
Hmm, i didnt know that the ptree stores all data as a string. which is kind of slow for my usage. On Wed, Jun 30, 2010 at 6:40 PM, Sebastian Redl < sebastian.redl@getdesigned.at> wrote:
On 06/30/2010 06:22 PM, Jani Plesnicar wrote:
Hy i am trying to store pointers in Property Tree and when i do need to write to some parser data i want to write data to which is "connected" with that pointer. because if i do xml_parser::write_xml(std::cout, _pt_root) i get pointers not the data to which is each leaf pointing to.
PTree stores the data as strings, and only does conversions when inserting/extracting data. Because of this, there is no possible interception point in XML writing to get the data you want. You could make a PTree that has a data type other than string, but write_xml won't work with it. I'm sorry, but I can't think of a way to do what you want.
Sebastian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users