From 68f96f9213e849d0d7c4cedf3edeaec99743ee27 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Aug 2015 09:51:15 +0200 Subject: New variable architecture --- build/name | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/name') diff --git a/build/name b/build/name index 111b661..ecf86cc 100644 --- a/build/name +++ b/build/name @@ -33,11 +33,11 @@ namespace build { name () = default; - explicit - name (std::string v): value (std::move (v)) {} + explicit name (std::string v): value (std::move (v)) {} + name& operator= (std::string v) {return *this = name (std::move (v));} - explicit - name (dir_path d): dir (std::move (d)) {} + explicit name (dir_path d): dir (std::move (d)) {} + name& operator= (dir_path d) {return *this = name (std::move (d));} name (std::string t, std::string v) : type (std::move (t)), value (std::move (v)) {} -- cgit v1.1