aboutsummaryrefslogtreecommitdiff
path: root/build/variable.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-27 12:57:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-27 12:57:39 +0200
commit9d818423031083f227a5e872826ed8c2d6e14a0f (patch)
tree794f3a27ba27e9210dc0c891fe681b863b53c747 /build/variable.ixx
parent10cdf9fdcd4181f2ea3dec1abf5bcc359b87829c (diff)
Add support for specifying library link order
Diffstat (limited to 'build/variable.ixx')
-rw-r--r--build/variable.ixx9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/variable.ixx b/build/variable.ixx
index 52272cc..54d7104 100644
--- a/build/variable.ixx
+++ b/build/variable.ixx
@@ -26,6 +26,13 @@ namespace build
}
inline const value_proxy& value_proxy::
+ operator= (list_value v) const
+ {
+ p->reset (new list_value (std::move (v)));
+ return *this;
+ }
+
+ inline const value_proxy& value_proxy::
operator= (std::string v) const
{
// In most cases this is used to initialize a new variable, so
@@ -70,7 +77,7 @@ namespace build
operator+= (const list_value& v) const
{
if (*p == nullptr)
- *this = value_ptr (new list_value (v));
+ *this = v;
else
{
list_value& lv (as<list_value&> ());