Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 10 / Examples / Queue.hpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 10/Examples/Queue.hpp4
diff --git a/Sem. 10/Examples/Queue.hpp b/Sem. 10/Examples/Queue.hpp
index 76e4cf2..eaf790b 100644
--- a/Sem. 10/Examples/Queue.hpp
+++ b/Sem. 10/Examples/Queue.hpp
@@ -57,7 +57,7 @@ void MyQueue<T>::push(T&& obj)
if (size == capacity)
resize();
- data[put] = obj; //move operator =
+ data[put] = std::move(obj); //move operator =
(++put) %= capacity;
size++;
}
@@ -147,4 +147,4 @@ template <typename T>
MyQueue<T>::~MyQueue()
{
free();
-} \ No newline at end of file
+}