aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/variable.ixx')
-rw-r--r--build2/variable.ixx11
1 files changed, 11 insertions, 0 deletions
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<project_name>::
+ assign (value& v, project_name&& x)
+ {
+ if (v)
+ v.as<project_name> () = move (x);
+ else
+ new (&v.data_) project_name (move (x));
+ }
+
// vector<T> value
//
template <typename T>