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