From ef130e855b5ac0f4acbb8b5b6fcd14069df8afe5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Jun 2022 12:23:34 +0200 Subject: Reset value::extra on variable_map value change/version increment The reset on each modification semantics is used to implement the default value distinction as currently done in the config module but later probably will be done for ?= and $origin(). --- libbuild2/config/utility.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/config') diff --git a/libbuild2/config/utility.txx b/libbuild2/config/utility.txx index b88f76c..0362d6a 100644 --- a/libbuild2/config/utility.txx +++ b/libbuild2/config/utility.txx @@ -58,7 +58,7 @@ namespace build2 if (!l.defined () || (def_ovr && !l.belongs (rs))) { value& v (rs.assign (var) = std::forward (def_val)); // VC14 - v.extra = true; // Default value flag. + v.extra = 1; // Default value flag. n = (sflags & save_default_commented) == 0; // Absence means default. l = lookup (v, var, rs); -- cgit v1.1