From cefac2db0b9f2672039e83bce27d38a92cdb7933 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Thu, 10 Sep 2020 15:03:28 +0200 Subject: [PATCH] assignment operator added --- container/FIFO.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/container/FIFO.h b/container/FIFO.h index 5a66a334c..701138520 100644 --- a/container/FIFO.h +++ b/container/FIFO.h @@ -29,6 +29,17 @@ public: this->setContainer(fifoArray.data()); } + /** + * @brief Custom assignment operator + * @param other + */ + FIFO& operator=(const FIFO& other){ + FIFOBase::operator=(other); + this->fifoArray = other.fifoArray; + this->setContainer(fifoArray.data()); + return *this; + } + private: std::array fifoArray; };