aboutsummaryrefslogtreecommitdiff
path: root/build/name
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-24 09:51:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-24 14:52:43 +0200
commit68f96f9213e849d0d7c4cedf3edeaec99743ee27 (patch)
tree271913d74c906971cac555319f5e14d0c66e0c16 /build/name
parent0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e (diff)
New variable architecture
Diffstat (limited to 'build/name')
-rw-r--r--build/name8
1 files changed, 4 insertions, 4 deletions
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)) {}