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/variable.txx | 1 + 1 file changed, 1 insertion(+) (limited to 'libbuild2/variable.txx') diff --git a/libbuild2/variable.txx b/libbuild2/variable.txx index b1c4112..d75befb 100644 --- a/libbuild2/variable.txx +++ b/libbuild2/variable.txx @@ -1070,6 +1070,7 @@ namespace build2 e.stem_version = sver; + e.value.extra = 0; // For consistency (we don't really use it). e.value.version++; // Value changed. } else -- cgit v1.1