aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-11 13:57:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-11 13:57:42 +0200
commite6d92a1fb21232ab09886431d39ccb8a95c7c68d (patch)
tree0d543e1e3c1b22e88f22f02e2dae75ae9eba2db5 /build/target
parentfdc21950905d64b2ca1df5a0b2622022beffe922 (diff)
Initial lexer implementation for buildfiles
Diffstat (limited to 'build/target')
-rw-r--r--build/target3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/target b/build/target
index 3ef3192..01cddc4 100644
--- a/build/target
+++ b/build/target
@@ -11,6 +11,7 @@
#include <typeindex>
#include <iosfwd>
#include <cassert>
+#include <utility> // move
#include <build/path>
#include <build/timestamp>
@@ -27,7 +28,7 @@ namespace build
class target
{
public:
- target (std::string n): name_ (n) {}
+ target (std::string n): name_ (std::move (n)) {}
const std::string&
name () const {return name_;}