From b86c1d8d2e0be140f6854d869e07139ff3c4221c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Aug 2020 10:51:26 +0200 Subject: Add copying version of convert(value) --- libbuild2/variable.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbuild2/variable.hxx') diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 6c78c95..3152c71 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -47,6 +47,8 @@ namespace build2 // const value_type* base_type; + template const value_type* is_a () const; + // Element type, if this is a vector. // const value_type* element_type; @@ -628,6 +630,10 @@ namespace build2 // template T convert (value&&); + // As above but preserving the value. + // + template T convert (const value&); + // Default implementations of the dtor/copy_ctor/copy_assing callbacks for // types that are stored directly in value::data_ and the provide all the // necessary functions (copy/move ctor and assignment operator). -- cgit v1.1