From 76697cbfae866d4ce2171f18ce164da87c652bc5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Apr 2016 08:27:44 +0200 Subject: Add missing cast() specialization --- build2/variable.ixx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build2/variable.ixx b/build2/variable.ixx index 3184108..76a52c1 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -86,6 +86,15 @@ namespace build2 return v.as (); } + template <> + inline names& + cast (value& v) + { + assert (!v.null () && + (v.type == nullptr || v.type == &value_traits::value_type)); + return v.as (); + } + template inline const T& cast (const value& v) -- cgit v1.1