From 9f5c4c1ae3bff517eefb39130287016514fb31c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Jan 2017 17:28:45 +0200 Subject: Store platform targets as typed target_triplet --- 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 c580a8a..bb97750 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -525,6 +525,17 @@ namespace build2 return r; } + // target_triplet value + // + inline void value_traits:: + assign (value& v, target_triplet&& x) + { + if (v) + v.as () = move (x); + else + new (&v.data_) target_triplet (move (x)); + } + // vector value // template -- cgit v1.1