diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-27 14:04:51 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-27 14:04:51 +0000 |
| commit | 78c3a3301c143bcf8cd5830150265ee80e3beb67 (patch) | |
| tree | 72ff61fd93ea9eb6034ad213dc932ebe29ab38f8 /src/ptr_map.cpp | |
| parent | 8bdc322d6abe47206963a8739bf1c9582037f2f9 (diff) | |
Change `static_assert` for `OrderedInsertPtrMapEntry`
Diffstat (limited to 'src/ptr_map.cpp')
| -rw-r--r-- | src/ptr_map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index 932f05d69..6ee3ec16d 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -467,7 +467,8 @@ struct MapFindResult { template <typename K, typename V> struct OrderedInsertPtrMapEntry { - static_assert(sizeof(K) == sizeof(void *), "Key size must be pointer size"); + static_assert(TypeIsPointer<K>::value || TypeIsPtrSizedInteger<K>::value || TypeIs64BitInteger<K>::value, + "OrderedInsertPtrMapEntry::K must be a pointer or 8-byte integer"); K key; V value; |