diff --git a/src/memory.hh b/src/memory.hh index a31e83c9..fb36b3e7 100644 --- a/src/memory.hh +++ b/src/memory.hh @@ -112,12 +112,14 @@ struct Allocator } template + [[gnu::always_inline]] void construct(U* p, Args&&... args) { new ((void*)p) U(std::forward(args)...); } template + [[gnu::always_inline]] void destroy(U* p) { p->~U(); } };