summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-09-22 20:38:03 -0400
committercomex <comexk@gmail.com>2013-09-22 21:15:58 -0400
commite82c9e616d71448dac6b2e1368c42398fdc0ae19 (patch)
tree7f392a60461df0cb3be8ff71e47c3f7b2f6da4ca /Source/Core
parentaf7ed820f59d8a11057dc833be26d10ff3bbeb38 (diff)
operator= is a function too! std::forward is still appropriate.
Fix the potentially unsafe use of std::move I added to FifoQueue.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Src/FifoQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/FifoQueue.h b/Source/Core/Common/Src/FifoQueue.h
index f5713c85f9..60e23bf0ee 100644
--- a/Source/Core/Common/Src/FifoQueue.h
+++ b/Source/Core/Common/Src/FifoQueue.h
@@ -46,7 +46,7 @@ public:
void Push(Arg&& t)
{
// create the element, add it to the queue
- m_write_ptr->current = std::move(t);
+ m_write_ptr->current = std::forward<Arg>(t);
// set the next pointer to a new element ptr
// then advance the write pointer
ElementPtr* new_ptr = new ElementPtr();