Skip to content

Commit 5ecd21b

Browse files
committed
Fix issue with dereferencing aux_ as a pointer instead of a reference.
1 parent 6ad66cd commit 5ecd21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/gtl/phmap.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,7 +3580,7 @@ class parallel_hash_set {
35803580
UniqueLock m(inner);
35813581
inner.set_.clear();
35823582
if constexpr (!std::is_same_v<gtl::priv::empty, aux_type>)
3583-
inner->aux_.clear();
3583+
inner.aux_.clear();
35843584
}
35853585
}
35863586

@@ -3591,7 +3591,7 @@ class parallel_hash_set {
35913591
UniqueLock m(inner);
35923592
inner.set_.clear();
35933593
if constexpr (!std::is_same_v<gtl::priv::empty, aux_type>)
3594-
inner->aux_.clear();
3594+
inner.aux_.clear();
35953595
}
35963596

35973597
// This overload kicks in when the argument is an rvalue of insertable and

0 commit comments

Comments
 (0)