diff --git a/pool.hpp b/pool.hpp index f654775b..0b5dc36a 100644 --- a/pool.hpp +++ b/pool.hpp @@ -97,7 +97,7 @@ namespace util { if (m_next.compare_exchange_weak (curr, soon)) { ++m_size; - return reinterpret_cast (curr); + return std::launder (reinterpret_cast (curr)); } } while (1); }