aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-20 15:56:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-20 15:56:26 +0200
commit5058b155076b004f4abf21be6cf657a3f2cc4d1b (patch)
tree2a1675598de93c22ef9850996cfd2964fb11480c /build2/variable.hxx
parentc9c366bc5f77a806384ebf678fe4335c1422884c (diff)
Add support for not cleaning generated version file
Diffstat (limited to 'build2/variable.hxx')
-rw-r--r--build2/variable.hxx14
1 files changed, 9 insertions, 5 deletions
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 <typename T> const T* cast_null (const value&);
template <typename T> 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 <typename T> T cast_false (const value& v);
- template <typename T> T cast_false (const lookup& l);
+ template <typename T> T cast_false (const value&);
+ template <typename T> T cast_false (const lookup&);
+
+ template <typename T> T cast_true (const value&);
+ template <typename T> 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.