1
0
forked from fsfw/fsfw

Fixes for #190 and #189

This commit is contained in:
2020-09-07 15:43:48 +02:00
parent b3d08cd40b
commit 2a28114b49
4 changed files with 44 additions and 4 deletions

View File

@ -25,9 +25,21 @@ public:
* @param other
*/
FIFO(const FIFO& other): FIFOBase<T>(other) {
this->fifoArray = other.fifoArray;
this->setContainer(fifoArray.data());
}
/**
* @brief Custom assignment operator
* @param other
*/
FIFO& operator=(const FIFO& other){
FIFOBase<T>::operator=(other);
this->fifoArray = other.fifoArray;
this->setContainer(fifoArray.data());
return *this;
}
private:
std::array<T, capacity> fifoArray;
};