Skip to content

Commit 8812393

Browse files
authored
Fix warnings with clang-21 (#284)
1 parent ec36fa8 commit 8812393

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

parallel_hashmap/phmap_base.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,22 +1234,22 @@ using ExtractOrT = typename ExtractOr<Extract, Obj, Default, void>::type;
12341234

12351235
// Extractors for the features of allocators.
12361236
template <typename T>
1237-
using GetPointer = typename T::pointer;
1237+
using GetPointer = typename std::allocator_traits<T>::pointer;
12381238

12391239
template <typename T>
1240-
using GetConstPointer = typename T::const_pointer;
1240+
using GetConstPointer = typename std::allocator_traits<T>::const_pointer;
12411241

12421242
template <typename T>
1243-
using GetVoidPointer = typename T::void_pointer;
1243+
using GetVoidPointer = typename std::allocator_traits<T>::void_pointer;
12441244

12451245
template <typename T>
1246-
using GetConstVoidPointer = typename T::const_void_pointer;
1246+
using GetConstVoidPointer = typename std::allocator_traits<T>::const_void_pointer;
12471247

12481248
template <typename T>
1249-
using GetDifferenceType = typename T::difference_type;
1249+
using GetDifferenceType = typename std::allocator_traits<T>::difference_type;
12501250

12511251
template <typename T>
1252-
using GetSizeType = typename T::size_type;
1252+
using GetSizeType = typename std::allocator_traits<T>::size_type;
12531253

12541254
template <typename T>
12551255
using GetPropagateOnContainerCopyAssignment =

0 commit comments

Comments
 (0)