aboutsummaryrefslogtreecommitdiff
path: root/build2/functions-path.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-25 20:39:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-26 13:46:49 +0300
commite755de789e146beea66bf6a4b55685034502df41 (patch)
tree4e67a579324e84bce2ac991443b92b5546a76422 /build2/functions-path.cxx
parent9488972a30b3cc06f0dd8d704d920f30fd335add (diff)
Make path value type to be base for dir_path
Diffstat (limited to 'build2/functions-path.cxx')
-rw-r--r--build2/functions-path.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/build2/functions-path.cxx b/build2/functions-path.cxx
index 6fff94d..81cd01f 100644
--- a/build2/functions-path.cxx
+++ b/build2/functions-path.cxx
@@ -74,8 +74,7 @@ namespace build2
// string
//
- f["string"] = [](path p) {return move (p).string ();};
- f["string"] = [](dir_path p) {return move (p).string ();};
+ f["string"] = [](path p) {return move (p).string ();};
f["string"] = [](paths v)
{
@@ -95,8 +94,7 @@ namespace build2
// representation
//
- f["representation"] = [](path p) {return move (p).representation ();};
- f["representation"] = [](dir_path p) {return move (p).representation ();};
+ f["representation"] = [](path p) {return move (p).representation ();};
f["representation"] = [](paths v)
{
@@ -116,7 +114,7 @@ namespace build2
// canonicalize
//
- f["canonicalize"] = [](path p) {p.canonicalize (); return p;};
+ f["canonicalize"] = [](path p) {p.canonicalize (); return p;};
f["canonicalize"] = [](dir_path p) {p.canonicalize (); return p;};
f["canonicalize"] = [](paths v)