diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-13 21:32:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-14 15:15:03 +0300 |
commit | 7eff6adfe294038c723c8059a5993a533551f6cc (patch) | |
tree | de9b93470224a163b715747ce61bbdc344a73b5e /libbutl/default-options.ixx | |
parent | 1e2e28d3e442ba3c95a5c2b9e5d920c72f6cee43 (diff) |
Add load_default_options() function template overload that accepts tracing function
Diffstat (limited to 'libbutl/default-options.ixx')
-rw-r--r-- | libbutl/default-options.ixx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libbutl/default-options.ixx b/libbutl/default-options.ixx new file mode 100644 index 0000000..e1a3dcf --- /dev/null +++ b/libbutl/default-options.ixx @@ -0,0 +1,16 @@ +// file : libbutl/default-options.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. +{ + template <typename O> + inline O + merge_default_options (const default_options<O>& def_ops, const O& cmd_ops) + { + return merge_default_options ( + def_ops, + cmd_ops, + [] (const default_options_entry<O>&, const O&) {}); + } +} |