From 67b36b32e19e17db9b1e5c72deb8db7202a0f41b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Aug 2018 09:36:23 +0200 Subject: Add support for returning optional from (buildfile) function implementations --- build2/variable.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/variable.hxx') 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); + template explicit value (T); // Create value of value_traits::value_type type. + template + explicit + value (optional); + // Note: preserves type. // value& -- cgit v1.1