From bd32ea47fd8f720b54f81a769dc007d1fdb4e5c1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 23 Aug 2016 09:05:54 +0200 Subject: Reverse empty simple values as an empty names sequence rather than empty name This way we get: config.import.foo = Rather than: config.import.foo = {} --- build2/variable | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/variable') diff --git a/build2/variable b/build2/variable index 1248bd3..fb44bb4 100644 --- a/build2/variable +++ b/build2/variable @@ -476,6 +476,7 @@ namespace build2 static void append (value&, bool); // OR. static name reverse (bool x) {return name (x ? "true" : "false", false);} static int compare (bool, bool); + static bool empty (bool) {return false;} static const char* const type_name; static const build2::value_type value_type; @@ -491,6 +492,7 @@ namespace build2 static void append (value&, uint64_t); // ADD. static name reverse (uint64_t x) {return name (to_string (x), false);} static int compare (uint64_t, uint64_t); + static bool empty (bool) {return false;} static const char* const type_name; static const build2::value_type value_type; -- cgit v1.1