From 61617d7bb990f04970c6357d8e9a9095174d8fc4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 26 Jun 2016 16:36:53 +0200 Subject: Minor module interface cleanups --- build2/variable.ixx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/variable.ixx') diff --git a/build2/variable.ixx b/build2/variable.ixx index e01e3d6..da86c39 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -158,6 +158,14 @@ namespace build2 } template + inline T + cast_false (const value& v) {return v && cast (v);} + + template + inline T + cast_false (const lookup& l) {return l && cast (l);} + + template inline void typify (value& v, const variable& var) { -- cgit v1.1