diff options
Diffstat (limited to 'libbutl/default-options.ixx')
-rw-r--r-- | libbutl/default-options.ixx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libbutl/default-options.ixx b/libbutl/default-options.ixx index 7e4c378..7248d7d 100644 --- a/libbutl/default-options.ixx +++ b/libbutl/default-options.ixx @@ -1,7 +1,7 @@ // file : libbutl/default-options.ixx -*- C++ -*- // license : MIT; see accompanying LICENSE file -LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. +namespace butl { template <typename O> inline O @@ -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&) {}); + } } |