aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-09 09:36:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-09 09:36:23 +0200
commit67b36b32e19e17db9b1e5c72deb8db7202a0f41b (patch)
tree6c8141f43232569ff930c401b40f74f130743696 /build2/variable.hxx
parent4ce9366b563ceb4939403dbf498b6a5126661ee0 (diff)
Add support for returning optional<T> from (buildfile) function implementations
Diffstat (limited to 'build2/variable.hxx')
-rw-r--r--build2/variable.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/variable.hxx b/build2/variable.hxx
index 401cc77..7a0e531 100644
--- a/build2/variable.hxx
+++ b/build2/variable.hxx
@@ -250,10 +250,17 @@ namespace build2
explicit
value (names); // Create untyped value.
+ explicit
+ value (optional<names>);
+
template <typename T>
explicit
value (T); // Create value of value_traits<T>::value_type type.
+ template <typename T>
+ explicit
+ value (optional<T>);
+
// Note: preserves type.
//
value&