Modify

Opened 4 years ago

Last modified 3 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.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Sebastian Redl

Summary: Ptree method getPtree should have add_or_get
Type: BugsFeature Requests

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Sebastian Redl.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.