aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/name.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/name.hxx')
-rw-r--r--libbuild2/name.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/name.hxx b/libbuild2/name.hxx
index f623110..d0e8d85 100644
--- a/libbuild2/name.hxx
+++ b/libbuild2/name.hxx
@@ -50,6 +50,10 @@ namespace build2
name (dir_path d, string t, string v)
: dir (move (d)), type (move (t)), value (move (v)) {}
+ name (string p, dir_path d, string t, string v)
+ : proj (project_name (move (p))), dir (move (d)), type (move (t)),
+ value (move (v)) {}
+
name (optional<project_name> p, dir_path d, string t, string v)
: proj (move (p)), dir (move (d)), type (move (t)), value (move (v)) {}