mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 09:16:46 +08:00
reinterpret_cast may not be used in a constant expression.
This commit is contained in:
parent
69bc556a52
commit
4c75b44547
@ -38,7 +38,7 @@ constexpr queue_t* queue_of(handle_t h) {
|
||||
return static_cast<queue_t*>(h);
|
||||
}
|
||||
|
||||
constexpr std::atomic_size_t* acc_of(queue_t* queue) {
|
||||
inline std::atomic_size_t* acc_of(queue_t* queue) {
|
||||
return reinterpret_cast<std::atomic_size_t*>(queue->elems()) - 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user