blob: 4a551ac7d794bdac33e7c7de449c5e7738f983c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// file : libbutl/default-options.ixx -*- C++ -*-
// 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&) {});
}
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&) {});
}
}
|