From d90ac405ae50f84a3cf4ba0b806cca1c89f81cff Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 26 Jul 2018 14:12:56 +0300 Subject: Make project variable to be of project_name type --- build2/variable.ixx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build2/variable.ixx') diff --git a/build2/variable.ixx b/build2/variable.ixx index 991556a..8c16559 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -611,6 +611,17 @@ namespace build2 new (&v.data_) target_triplet (move (x)); } + // project_name value + // + inline void value_traits:: + assign (value& v, project_name&& x) + { + if (v) + v.as () = move (x); + else + new (&v.data_) project_name (move (x)); + } + // vector value // template -- cgit v1.1