Fix: use type name instead of variable name
That was a typo in rBfd60f6713a9d9e6f7d706b53bf1311f2f1cd9031.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user