aboutsummaryrefslogtreecommitdiff
path: root/build2/name
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-05 11:29:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-05 11:29:58 +0200
commit86cdcdcf11982281aa286682faf604cff3b1c7d1 (patch)
treeaaecefd0169ad6ef27f375d8a64acd6f30574730 /build2/name
parent4461d80e680bc81eaad28bac58015660f5bc105e (diff)
Make name::pair char again
The plan is to represent scope/target-qualified variables as ':'-style pairs.
Diffstat (limited to 'build2/name')
-rw-r--r--build2/name3
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/name b/build2/name
index d0a115f..68fe9c7 100644
--- a/build2/name
+++ b/build2/name
@@ -33,7 +33,8 @@ namespace build2
dir_path dir;
string type;
string value;
- bool pair = false; // True if first half of a pair.
+ char pair = '\0'; // Pair character if first half of a pair. Can be used
+ // as bool.
name () = default;