mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-20 16:56:17 +00:00
Use lambda instead of bind
This commit is contained in:
parent
80fb932ec3
commit
72d0731fae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user