From 7eff6adfe294038c723c8059a5993a533551f6cc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 13 Aug 2019 21:32:05 +0300 Subject: Add load_default_options() function template overload that accepts tracing function --- libbutl/default-options.ixx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbutl/default-options.ixx (limited to 'libbutl/default-options.ixx') 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 + inline O + merge_default_options (const default_options& def_ops, const O& cmd_ops) + { + return merge_default_options ( + def_ops, + cmd_ops, + [] (const default_options_entry&, const O&) {}); + } +} -- cgit v1.1