nrtb-core team mailing list archive
-
nrtb-core team
-
Mailing list archive
-
Message #00520
[Branch ~fpstovall/nrtb/fps-sprint-003] Rev 27: Added move sematics to nrtb::circular_queue. This is a part of the fix for bug 1217388. Unit test...
------------------------------------------------------------
revno: 27
committer: Rick Stovall <fpstovall>
branch nick: ricks-sprint-003
timestamp: Tue 2013-08-27 11:36:47 -0400
message:
Added move sematics to nrtb::circular_queue. This is a part of the fix for bug 1217388. Unit tested; no regressions noted.
modified:
cpp/common/circular_queue/circular_queue.h
--
lp:~fpstovall/nrtb/fps-sprint-003
https://code.launchpad.net/~fpstovall/nrtb/fps-sprint-003
Your team NRTB Core is subscribed to branch lp:~fpstovall/nrtb/fps-sprint-003.
To unsubscribe from this branch go to https://code.launchpad.net/~fpstovall/nrtb/fps-sprint-003/+edit-subscription
=== modified file 'cpp/common/circular_queue/circular_queue.h'
--- cpp/common/circular_queue/circular_queue.h 2013-06-30 19:22:02 +0000
+++ cpp/common/circular_queue/circular_queue.h 2013-08-27 15:36:47 +0000
@@ -35,7 +35,7 @@
class base_cq : public boost::circular_buffer<T>
{
public:
- void push(T elem) { this->push_back(elem); };
+ void push(T elem) { this->push_back(std::move(elem)); };
void pop() { this->pop_front(); };
};