From 9d818423031083f227a5e872826ed8c2d6e14a0f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Apr 2015 12:57:39 +0200 Subject: Add support for specifying library link order --- build/variable.ixx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'build/variable.ixx') 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 ()); -- cgit v1.1