aboutsummaryrefslogtreecommitdiff
path: root/build/config/utility
diff options
context:
space:
mode:
Diffstat (limited to 'build/config/utility')
-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.
//