From 5058b155076b004f4abf21be6cf657a3f2cc4d1b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 20 Aug 2017 15:56:26 +0200 Subject: Add support for not cleaning generated version file --- build2/variable.hxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'build2/variable.hxx') diff --git a/build2/variable.hxx b/build2/variable.hxx index decc300..5ef67fd 100644 --- a/build2/variable.hxx +++ b/build2/variable.hxx @@ -283,12 +283,16 @@ namespace build2 template const T* cast_null (const value&); template const T* cast_null (const lookup&); - // As above but returns false if the value is NULL (or not defined, in case - // of lookup). Note that the template argument is only for documentation and - // should be bool (or semantically compatible). + // As above but returns false/true if the value is NULL (or not defined, + // in case of lookup). Note that the template argument is only for + // documentation and should be bool (or semantically compatible). // - template T cast_false (const value& v); - template T cast_false (const lookup& l); + template T cast_false (const value&); + template T cast_false (const lookup&); + + template T cast_true (const value&); + template T cast_true (const lookup&); + // Assign value type to the value. In the second version the variable is // optional and is only used for diagnostics. -- cgit v1.1