Hmm, i didnt know that the ptree stores all data as a string. which is kind of slow for my usage.<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 6:40 PM, Sebastian Redl <span dir="ltr">&lt;<a href="mailto:sebastian.redl@getdesigned.at">sebastian.redl@getdesigned.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">On 06/30/2010 06:22 PM, Jani Plesnicar wrote:<br>
&gt; Hy i am trying to store pointers in Property Tree and when i do need<br>
&gt; to write to some parser data i want to write data to which is<br>
&gt; &quot;connected&quot; with that pointer. because if i do<br>
&gt; xml_parser::write_xml(std::cout, _pt_root) i get pointers not the data<br>
&gt; to which is each leaf pointing to.<br>
&gt;<br>
</div></div>PTree stores the data as strings, and only does conversions when<br>
inserting/extracting data. Because of this, there is no possible<br>
interception point in XML writing to get the data you want.<br>
You could make a PTree that has a data type other than string, but<br>
write_xml won&#39;t work with it.<br>
I&#39;m sorry, but I can&#39;t think of a way to do what you want.<br>
<br>
Sebastian<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div><br>