pool: prefer byte over char for raw data
This commit is contained in:
parent
0f5f660fa3
commit
b79cc887a0
2
pool.hpp
2
pool.hpp
@ -37,7 +37,7 @@ namespace util {
|
|||||||
|
|
||||||
union alignas(node*) node {
|
union alignas(node*) node {
|
||||||
std::atomic<node*> next;
|
std::atomic<node*> next;
|
||||||
char data[sizeof (T)];
|
std::byte data[sizeof(T)];
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert (std::atomic<node*>::is_always_lock_free);
|
static_assert (std::atomic<node*>::is_always_lock_free);
|
||||||
|
Loading…
Reference in New Issue
Block a user