aboutsummaryrefslogtreecommitdiff
path: root/build2/config/utility.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/config/utility.ixx')
-rw-r--r--build2/config/utility.ixx17
1 files changed, 17 insertions, 0 deletions
diff --git a/build2/config/utility.ixx b/build2/config/utility.ixx
new file mode 100644
index 0000000..b665248
--- /dev/null
+++ b/build2/config/utility.ixx
@@ -0,0 +1,17 @@
+// file : build2/config/utility.ixx -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+namespace build2
+{
+ namespace config
+ {
+ template <typename T>
+ inline void
+ append_options (cstrings& args, T& s, const char* var)
+ {
+ if (auto l = s[var])
+ append_options (args, as<strings> (*l));
+ }
+ }
+}