From 0342dc2fcdd78ef28a4e59d84193a3807068d726 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Apr 2016 07:57:19 +0200 Subject: New configuration logic, iteration 1 --- build2/variable | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/variable') diff --git a/build2/variable b/build2/variable index 77e9db2..14bf7af 100644 --- a/build2/variable +++ b/build2/variable @@ -161,6 +161,9 @@ namespace build2 template value& operator= (T); template value& operator+= (T); + template value& operator+= (T* v) { + return v != nullptr ? *this += *v : *this;} + value& operator= (const char* v) {return *this = string (v);} value& operator+= (const char* v) {return *this += string (v);} -- cgit v1.1