summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/shootout2_cmap.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-10-28 12:04:23 +0200
committerTyge Løvset <[email protected]>2021-10-28 14:55:17 +0200
commit583a0ac357dba6b8c35db7450e8286469516a3b9 (patch)
tree59f9eab4810dcdb0f7afbf239a387ec4fa7e6861 /benchmarks/shootout2_cmap.cpp
parent7d2fe0a5232b8deef52ec2e786c9dac999ef2234 (diff)
downloadSTC-modified-583a0ac357dba6b8c35db7450e8286469516a3b9.tar.gz
STC-modified-583a0ac357dba6b8c35db7450e8286469516a3b9.zip
updated shootouts, fixed some warnings
Diffstat (limited to 'benchmarks/shootout2_cmap.cpp')
-rw-r--r--benchmarks/shootout2_cmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/shootout2_cmap.cpp b/benchmarks/shootout2_cmap.cpp
index 1704079d..58a31009 100644
--- a/benchmarks/shootout2_cmap.cpp
+++ b/benchmarks/shootout2_cmap.cpp
@@ -58,7 +58,7 @@ stc64_t rng;
#define UMAP_SETUP(X, Key, Value) std::unordered_map<Key, Value> map; map.max_load_factor(max_load_factor)
#define UMAP_PUT(X, key, val) (map[key] = val)
-#define UMAP_EMPLACE(X, key, val) (*map.emplace(key, val).first).second
+#define UMAP_EMPLACE(X, key, val) map.emplace(key, val).first->second
#define UMAP_FIND(X, key) (map.find(key) != map.end())
#define UMAP_ERASE(X, key) map.erase(key)
#define UMAP_FOR(X, i) for (auto i: map)