greg7mdp / parallel-hashmap

A family of header-only, very fast and memory-friendly hashmap and btree containers.
https://greg7mdp.github.io/parallel-hashmap/
Apache License 2.0
2.53k stars 239 forks source link

error: 'ptr' was not declared in this scope #148

Closed HBSDLJZ closed 2 years ago

HBSDLJZ commented 2 years ago

image image How can I solve the problems?Thank you!

HBSDLJZ commented 2 years ago

image

greg7mdp commented 2 years ago

The issue is that the lambda passed to if_contains takes a map::value_type& argument. This has changed a little while ago. See examples in tests/parallel_hash_map_test.cc.

greg7mdp commented 2 years ago

I will close the issue. Please reopen if needed. Thanks!