Boost C++ Libraries: Ticket #9015: Ptree should have add_or_get https://svn.boost.org/trac10/ticket/9015 <p> When using the method "..get" on a Ptree it is possible to retrieve the value of the key. When the key doesn't exits, the default value is used. Then the proper way should be that the default value will be added to the ptree. I don't know how other people think about it? Now you have to add another line to add it to the ptree. Maybe It can with a overloaded function, which has the option to add it to the ptree. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9015 Trac 1.4.3 Sebastian Redl Fri, 23 Jan 2015 11:10:34 GMT type, summary changed https://svn.boost.org/trac10/ticket/9015#comment:1 https://svn.boost.org/trac10/ticket/9015#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>summary</strong> <span class="trac-field-old">Ptree method get</span> → <span class="trac-field-new">Ptree should have add_or_get</span> </li> </ul> Ticket