aboutsummaryrefslogtreecommitdiff
path: root/build2/name
diff options
context:
space:
mode:
Diffstat (limited to 'build2/name')
-rw-r--r--build2/name10
1 files changed, 9 insertions, 1 deletions
diff --git a/build2/name b/build2/name
index 12aa9dc..e079c9f 100644
--- a/build2/name
+++ b/build2/name
@@ -125,7 +125,15 @@ namespace build2
// Vector of names.
//
- using names = vector<name>;
+ // We make it a separate type rather than an alias for vector<name> in order
+ // to distinguish between untyped variable values (names) and typed ones
+ // (vector<name>).
+ //
+ struct names: vector<name>
+ {
+ using vector::vector;
+ };
+
using names_view = vector_view<const name>;
// The same semantics as to_stream(name).