Skip to content

Commit a64933d

Browse files
author
Maxim Egorushkin
committed
Explicit restrict qualifier for queue elements parameter of index mapping function.
1 parent a1e0fe2 commit a64933d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/atomic_queue/atomic_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ATOMIC_QUEUE_INLINE constexpr unsigned remap_index<0>(unsigned index) noexcept {
6868
}
6969

7070
template<int BITS, class T>
71-
ATOMIC_QUEUE_INLINE static constexpr T& map(T* elements, unsigned index) noexcept {
71+
ATOMIC_QUEUE_INLINE static constexpr T& map(T* ATOMIC_QUEUE_RESTRICT elements, unsigned index) noexcept {
7272
return elements[remap_index<BITS>(index)];
7373
}
7474

0 commit comments

Comments
 (0)