aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
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_;}