diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-10 19:05:23 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-11 19:09:24 +0300 |
commit | 377cec303eea81fb18b294eb47a54587643dbd01 (patch) | |
tree | 8437bff2e99415b49f22bbd325aa47c768716d7f /libbutl/default-options.ixx | |
parent | 2b14f09675c10d999779858ae31934b7eef55b89 (diff) |
Add support for arguments in default options files helpers
Diffstat (limited to 'libbutl/default-options.ixx')
-rw-r--r-- | libbutl/default-options.ixx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libbutl/default-options.ixx b/libbutl/default-options.ixx index 7e4c378..4a551ac 100644 --- a/libbutl/default-options.ixx +++ b/libbutl/default-options.ixx @@ -12,4 +12,15 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. cmd_ops, [] (const default_options_entry<O>&, const O&) {}); } + + template <typename O, typename AS> + inline AS + merge_default_arguments (const default_options<O>& def_ops, + const AS& cmd_args) + { + return merge_default_arguments ( + def_ops, + cmd_args, + [] (const default_options_entry<O>&, const AS&) {}); + } } |