From 377cec303eea81fb18b294eb47a54587643dbd01 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 10 Sep 2020 19:05:23 +0300 Subject: Add support for arguments in default options files helpers --- libbutl/default-options.ixx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libbutl/default-options.ixx') 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&, const O&) {}); } + + template + inline AS + merge_default_arguments (const default_options& def_ops, + const AS& cmd_args) + { + return merge_default_arguments ( + def_ops, + cmd_args, + [] (const default_options_entry&, const AS&) {}); + } } -- cgit v1.1