We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481a0d4 commit 002f58eCopy full SHA for 002f58e
1 file changed
parallel_hashmap/phmap.h
@@ -1193,7 +1193,7 @@ class raw_hash_set
1193
// Hash, equality and allocator are copied instead of moved because
1194
// `that` must be left valid. If Hash is std::function<Key>, moving it
1195
// would create a nullptr functor that cannot be called.
1196
- settings_(that.settings_) {
+ settings_(std::move(that.settings_)) {
1197
// growth_left was copied above, reset the one from `that`.
1198
that.growth_left() = 0;
1199
}
0 commit comments