From 7eed858cac7e8ff78626bdc5d63a7f36ca8f8010 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Mar 2015 16:33:51 +0200 Subject: Move roots and bases to appropriate scopes --- build/name | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build/name') diff --git a/build/name b/build/name index db7b61c..00f0c00 100644 --- a/build/name +++ b/build/name @@ -17,12 +17,16 @@ namespace build // A name is what we operate on by default. Depending on the context, // it can be interpreted as a target or prerequisite name. A name // without a type and directory can be used to represent any text. + // A name with directory and empty value represents a directory. // struct name { explicit name (std::string v): value (std::move (v)) {} + explicit + name (path d): dir (std::move (d)) {} + name (std::string t, path d, std::string v) : type (std::move (t)), dir (std::move (d)), value (std::move (v)) {} -- cgit v1.1