pool: launder the allocated pointers

This commit is contained in:
Danny Robson 2018-03-22 13:10:18 +11:00
parent 7fc51aa151
commit 88d514aa9c

View File

@ -97,7 +97,7 @@ namespace util {
if (m_next.compare_exchange_weak (curr, soon)) {
++m_size;
return reinterpret_cast<T*> (curr);
return std::launder (reinterpret_cast<T*> (curr));
}
} while (1);
}