pool: prefer byte over char for raw data

This commit is contained in:
Danny Robson 2018-07-04 14:02:51 +10:00
parent 0f5f660fa3
commit b79cc887a0

View File

@ -37,7 +37,7 @@ namespace util {
union alignas(node*) node {
std::atomic<node*> next;
char data[sizeof (T)];
std::byte data[sizeof(T)];
};
static_assert (std::atomic<node*>::is_always_lock_free);