summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/main.cpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-22 17:55:18 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-22 17:55:18 -0800
commitc2ed17faa6aa9f8420128d2713c5b557ab333466 (patch)
treea6d4755f797896f641891565e9d2965c97513b7c /starts/meaning-vm/main.cpp
parentc699a8913c5c1e53e0b701109dabe2b8fc70b644 (diff)
downloadstandingwithresilience-c2ed17faa6aa9f8420128d2713c5b557ab333466.tar.gz
standingwithresilience-c2ed17faa6aa9f8420128d2713c5b557ab333466.zip
use refs for temporaries, which means pulling them out of containers
Diffstat (limited to 'starts/meaning-vm/main.cpp')
-rw-r--r--starts/meaning-vm/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/starts/meaning-vm/main.cpp b/starts/meaning-vm/main.cpp
index b8d0e02..f8e4ec0 100644
--- a/starts/meaning-vm/main.cpp
+++ b/starts/meaning-vm/main.cpp
@@ -10,10 +10,10 @@ void dumpconcept(ref r)
declrefs(dumped, name);
for (auto & l : r->links) {
- if (l.first == name) {
+ if (ref(l.first) == name) {
continue;
}
- cout << r << " " << l.first << " " << l.second << endl;
+ cout << r << " " << ref(l.first) << " " << ref(l.second) << endl;
}
if (!r->linked(dumped)) {
r[dumped = true];