about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cpp/010vm6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/010vm b/cpp/010vm
index 5c8e120c..39159e40 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -211,7 +211,11 @@ string slurp_until(istream& in, char delim) {
 }
 
 void dump_memory() {
-  for (unordered_map<int, int>::iterator p = Memory.begin(); p != Memory.end(); ++p) {
+  map<int, int> ordered(Memory.begin(), Memory.end());
+  for (map<int, int>::iterator p = ordered.begin(); p != ordered.end(); ++p) {
     cout << p->first << ": " << p->second << '\n';
   }
 }
+:(before "End Includes")
+#include <map>
+using std::map;