|
Boost Users : |
Subject: [Boost-users] Serialization and std::move
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2010-05-08 23:33:20
B"H
I'm doing some research. I grep'ed through the 1.43 version of the
libs/serialization directories for uses of std::move and didn't find any.
I also looked at the "To Do" section of the documentation and didn't
find any mention of move semantics. Does Boost Serialization take
advantage of std::move to improve the performance of it's load
operations? Something like the following:
template <typename B>
void
Receive(B* buf, vector<deque<string> >& abt1)
{
uint32_t headCount[2];
buf->Give(headCount[0]);
abt1.reserve(abt1.size() + headCount[0]);
while (headCount[0] > 0) {
--headCount[0];
deque<lil_string> rep4;
buf->Give(headCount[1]);
while (headCount[1] > 0) {
--headCount[1];
string rep5;
stringReceive(buf. rep5);
rep4.push_back(std::move(rep5));
}
abt1.push_back(std::move(rep4));
}
}
Thanks in advance.
-- Brian Wood
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net