Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
operator= is a function too! std::forward is still appropriate.
Fix the potentially unsafe use of std::move I added to FifoQueue.
  • Loading branch information
comex committed Sep 23, 2013
1 parent af7ed82 commit e82c9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/FifoQueue.h
Expand Up @@ -46,7 +46,7 @@ class FifoQueue
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();
Expand Down

0 comments on commit e82c9e6

Please sign in to comment.