mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 02:00:55 +00:00
Bugfix for ExternalRAMAllocator copy constructor (#3571)
This commit is contained in:
parent
01bfafc5f1
commit
c8b58b5c23
@ -600,7 +600,7 @@ template<class T> class ExternalRAMAllocator {
|
||||
|
||||
ExternalRAMAllocator() = default;
|
||||
ExternalRAMAllocator(Flags flags) : flags_{flags} {}
|
||||
template<class U> constexpr ExternalRAMAllocator(const ExternalRAMAllocator<U> &other) : flags_{other.flags} {}
|
||||
template<class U> constexpr ExternalRAMAllocator(const ExternalRAMAllocator<U> &other) : flags_{other.flags_} {}
|
||||
|
||||
T *allocate(size_t n) {
|
||||
size_t size = n * sizeof(T);
|
||||
|
Loading…
x
Reference in New Issue
Block a user