Opened 9 years ago
Last modified 8 years ago
#9015 new Feature Requests
Ptree should have add_or_get
Reported by: | anonymous | Owned by: | Sebastian Redl |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.54.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
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.
Change History (1)
comment:1 by , 8 years ago
Summary: | Ptree method get → Ptree should have add_or_get |
---|---|
Type: | Bugs → Feature Requests |
Note:
See TracTickets
for help on using tickets.