aboutsummaryrefslogtreecommitdiff
path: root/build/path
diff options
context:
space:
mode:
Diffstat (limited to 'build/path')
-rw-r--r--build/path11
1 files changed, 9 insertions, 2 deletions
diff --git a/build/path b/build/path
index 97fb154..bdb9b72 100644
--- a/build/path
+++ b/build/path
@@ -7,6 +7,7 @@
#include <string>
#include <ostream>
+#include <utility> // move
#include <exception>
namespace build
@@ -168,8 +169,14 @@ namespace build
}
explicit
- basic_path (string_type const& s)
- : path_ (s)
+ basic_path (string_type s)
+ : path_ (std::move (s))
+ {
+ init ();
+ }
+
+ basic_path (const string_type& s, size_type n)
+ : path_ (s, 0, n)
{
init ();
}