aboutsummaryrefslogtreecommitdiff
path: root/build/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-28 15:01:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-28 15:01:10 +0200
commit1cf1603cae3064aff734f52d23c06098e81a8111 (patch)
treef82ed15513af3c48f58545b420b6ca1afd1ac9a7 /build/config
parent99116592590c0face4ec37a2e0308e9c3a2f98dd (diff)
Install module genesis
Diffstat (limited to 'build/config')
-rw-r--r--build/config/utility7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/config/utility b/build/config/utility
index e1d81a7..713ab01 100644
--- a/build/config/utility
+++ b/build/config/utility
@@ -41,6 +41,13 @@ namespace build
const T*
optional (scope& root, const char* name);
+ template <typename T>
+ inline const T*
+ optional (scope& root, const std::string& name)
+ {
+ return optional<T> (root, name.c_str ());
+ }
+
// Add all the values from a variable to the C-string list. T is
// either target or scope.
//