aboutsummaryrefslogtreecommitdiff
path: root/build/variable.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-08 11:29:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-08 11:29:43 +0200
commit29c3e3b8912b784d9e2e4a4bec4c2378c7ffef7a (patch)
tree3465bcb6fd73dbedfcc42ecdd94e71e701a2a1e8 /build/variable.ixx
parent9e6303e86dae25096ee62d74abfca4456be6a96f (diff)
Get rid of need to store scope in variable value
Diffstat (limited to 'build/variable.ixx')
-rw-r--r--build/variable.ixx7
1 files changed, 3 insertions, 4 deletions
diff --git a/build/variable.ixx b/build/variable.ixx
index 85fdd50..ca5a24a 100644
--- a/build/variable.ixx
+++ b/build/variable.ixx
@@ -7,7 +7,6 @@ namespace build
inline const value_proxy& value_proxy::
operator= (value_ptr v) const
{
- assert (v == nullptr || &v->scope == s);
*p = std::move (v);
return *this;
}
@@ -18,7 +17,7 @@ namespace build
if (this != &v)
{
if (v)
- *p = v.as<const value&> ().clone (*s);
+ *p = v.as<const value&> ().clone ();
else
p->reset ();
}
@@ -33,14 +32,14 @@ namespace build
// don't bother trying to optimize for the case where p is not
// NULL.
//
- p->reset (new list_value (*s, std::move (v)));
+ p->reset (new list_value (std::move (v)));
return *this;
}
inline const value_proxy& value_proxy::
operator= (path v) const
{
- p->reset (new list_value (*s, std::move (v)));
+ p->reset (new list_value (std::move (v)));
return *this;
}
}