From 72d0731faebcd366bb65294d063764c4de4a3487 Mon Sep 17 00:00:00 2001 From: Eric Severance Date: Mon, 16 Dec 2024 23:20:00 -0800 Subject: [PATCH] Use lambda instead of bind --- src/mesh/MemoryPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/MemoryPool.h b/src/mesh/MemoryPool.h index 4bda3d50a..795e768ea 100644 --- a/src/mesh/MemoryPool.h +++ b/src/mesh/MemoryPool.h @@ -11,7 +11,7 @@ template class Allocator { public: - Allocator() : deleter(std::bind(&Allocator::release, this, std::placeholders::_1)) {} + Allocator() : deleter([this](T *p) { this->release(p); }) {} virtual ~Allocator() {} /// Return a queable object which has been prefilled with zeros. Panic if no buffer is available