diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-22 17:55:18 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-22 17:55:18 -0800 |
commit | c2ed17faa6aa9f8420128d2713c5b557ab333466 (patch) | |
tree | a6d4755f797896f641891565e9d2965c97513b7c /starts/meaning-vm/main.cpp | |
parent | c699a8913c5c1e53e0b701109dabe2b8fc70b644 (diff) | |
download | standingwithresilience-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.cpp | 4 |
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]; |