Signed-off-by: Kefu Chai <kchai@redhat.com>
// if an empty array is acceptable, the caller should always check for
// vector<string> if the expected value of "vector<int64_t>" in the
// cmdmap is missing.
- (*mapp)[it->first] = std::move(vector<string>());
+ (*mapp)[it->first] = vector<string>();
} else if (spvals.front().type() == json_spirit::str_type) {
vector<string> outv;
for (const auto& sv : spvals) {
}
virtual void spawn_worker(unsigned i, std::function<void ()> &&func) override {
threads.resize(i+1);
- threads[i] = std::move(std::thread(func));
+ threads[i] = std::thread(func);
}
virtual void join_worker(unsigned i) override {
assert(threads.size() > i && threads[i].joinable());