diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-26 13:26:35 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-26 13:26:35 +0000 |
| commit | a9182cfd8cf9dd8cec125221e39c0fcd7a3fd3e3 (patch) | |
| tree | f66b628ddf041d894a89469974969045167c5f15 /src/ptr_set.cpp | |
| parent | de6c0f682ffae88dfa6f64b44652e243f651a0a6 (diff) | |
Allow compound literals to access fields through `using`
Diffstat (limited to 'src/ptr_set.cpp')
| -rw-r--r-- | src/ptr_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp index 2b8f38fef..ff4befc37 100644 --- a/src/ptr_set.cpp +++ b/src/ptr_set.cpp @@ -1,6 +1,6 @@ template <typename T> struct PtrSet { - static_assert(TypeIsPointer<T>::value, "PtrSet::T must be a pointer"); + static_assert(TypeIsPointer<T>::value || TypeIsPtrSizedInteger<T>::value, "PtrSet::T must be a pointer"); static constexpr uintptr TOMBSTONE = ~(uintptr)(0ull); T * keys; |