diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-28 15:01:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-28 15:01:10 +0200 |
commit | 1cf1603cae3064aff734f52d23c06098e81a8111 (patch) | |
tree | f82ed15513af3c48f58545b420b6ca1afd1ac9a7 /build/config | |
parent | 99116592590c0face4ec37a2e0308e9c3a2f98dd (diff) |
Install module genesis
Diffstat (limited to 'build/config')
-rw-r--r-- | build/config/utility | 7 |
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. // |