Skip to content

Commit

Permalink
Make predicate optional in config::remove_children (#6796)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Jun 24, 2022
1 parent e1120ae commit 1554241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ class config
/**
* Removes all children with tag @a key for which @a p returns true.
*/
void remove_children(config_key_type key, std::function<bool(const config&)> p);
void remove_children(config_key_type key, std::function<bool(const config&)> p = [](config){return true;});
void recursive_clear_value(config_key_type key);

void clear();
Expand Down

0 comments on commit 1554241

Please sign in to comment.