aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-03 13:29:14 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-03 13:33:34 +0100
commite9c04c3351b4b3acae2d154b9aba808c3600054f (patch)
treebc084ed79faf15a58d926318dfe1df58db7d5ae7 /src/libexpr/value.hh
parentecff9d969acef5a08d3963d16eac83a5210de86e (diff)
Be more aggressive in hiding repeated values
We now memoize on Bindings / list element vectors rather than Values, so that e.g. two Values that point to the same Bindings will be printed only once.
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r--src/libexpr/value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index 84c4d09f8..d0fa93e92 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -115,7 +115,7 @@ private:
InternalType internalType;
friend std::string showType(const Value & v);
- friend void printValue(std::ostream & str, std::set<const Value *> & seen, const Value & v);
+ friend void printValue(std::ostream & str, std::set<const void *> & seen, const Value & v);
public: