aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-19 11:34:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-28 16:03:35 +0200
commit9d0d078ff297138622cd2f3f1076f5984395e42b (patch)
treef8b93311adc03410422b3d602ba000822394aebc /build2/variable.ixx
parenteb8b0f33b5e3b8a03d9c1b5230028ba9b9e8c391 (diff)
Add support for pair representation reversibility
Diffstat (limited to 'build2/variable.ixx')
-rw-r--r--build2/variable.ixx9
1 files changed, 8 insertions, 1 deletions
diff --git a/build2/variable.ixx b/build2/variable.ixx
index b368c6e..df3f0c5 100644
--- a/build2/variable.ixx
+++ b/build2/variable.ixx
@@ -34,7 +34,14 @@ namespace build2
inline bool
assign (name& n)
{
- return value_traits<T>::assign (n);
+ return value_traits<T>::assign (n, nullptr);
+ }
+
+ template <typename T>
+ inline bool
+ assign (name& l, name& r)
+ {
+ return value_traits<T>::assign (l, &r);
}
template <typename T>