1
1

Fix: use type name instead of variable name

That was a typo in rBfd60f6713a9d9e6f7d706b53bf1311f2f1cd9031.
This commit is contained in:
2021-09-14 15:18:06 +02:00
parent fd60f6713a
commit 426e2663a0

View File

@@ -141,7 +141,7 @@ class ResourceScope : NonCopyable, NonMovable {
*/
template<typename Func> void add_destruct_call(Func func, const char *name)
{
void *buffer = m_allocator.allocate(sizeof(func), alignof(func));
void *buffer = m_allocator.allocate(sizeof(Func), alignof(Func));
new (buffer) Func(std::move(func));
this->add(
buffer, [](void *data) { (*(Func *)data)(); }, name);