diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-13 14:20:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-13 14:22:07 +0200 |
commit | f11d720f2fb62b46ad17d3aa3850140a4839f114 (patch) | |
tree | 7b077efc16b0362283e1857cf974090ee4ce8f26 /build2/name.hxx | |
parent | 08688bfc12a42a0399bcbdd6fe7d30d8f2486775 (diff) |
Implement info meta operation
This meta operation can be used to print basic information (name, version,
source/output roots, etc) for one or more projects.
Diffstat (limited to 'build2/name.hxx')
-rw-r--r-- | build2/name.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/name.hxx b/build2/name.hxx index 6f329ef..4394236 100644 --- a/build2/name.hxx +++ b/build2/name.hxx @@ -90,6 +90,8 @@ namespace build2 compare (const name&) const; }; + extern const name empty_name; + inline bool operator== (const name& x, const name& y) {return x.compare (y) == 0;} @@ -140,9 +142,10 @@ namespace build2 // (names) and typed ones (vector<name>). // using names = small_vector<name, 1>; - using names_view = vector_view<const name>; + extern const names empty_names; + // The same semantics as to_stream(name). // ostream& |