Use lambda instead of bind

This commit is contained in:
Eric Severance 2024-12-16 23:20:00 -08:00
parent 80fb932ec3
commit 72d0731fae
No known key found for this signature in database
GPG Key ID: 340D1DA2A5A64A62

View File

@ -11,7 +11,7 @@ template <class T> 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