From e060784ecca1120396f5d4aea2888ec01ae69e72 Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Wed, 26 Mar 2014 18:45:50 +0400 Subject: [PATCH] fixed build --- dbms/src/Common/tests/auto_array.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dbms/src/Common/tests/auto_array.cpp b/dbms/src/Common/tests/auto_array.cpp index 3d8ae6fa9a0..43c8c359f9f 100644 --- a/dbms/src/Common/tests/auto_array.cpp +++ b/dbms/src/Common/tests/auto_array.cpp @@ -79,7 +79,7 @@ int main(int argc, char ** argv) for (size_t j = 0; j < n; ++j) key[j] = DB::toString(rand()); - map[key] = "Hello, world! " + DB::toString(i); + map[std::move(key)] = "Hello, world! " + DB::toString(i); } for (Map::const_iterator it = map.begin(); it != map.end(); ++it) @@ -94,7 +94,7 @@ int main(int argc, char ** argv) std::cerr << std::endl; - Map map2 = map; + Map map2 = std::move(map); for (Map::const_iterator it = map2.begin(); it != map2.end(); ++it) { @@ -123,7 +123,7 @@ int main(int argc, char ** argv) for (size_t j = 0; j < n; ++j) key[j] = DB::toString(rand()); - vec.push_back(key); + vec.push_back(std::move(key)); } for (Vec::const_iterator it = vec.begin(); it != vec.end(); ++it) @@ -136,7 +136,7 @@ int main(int argc, char ** argv) std::cerr << std::endl; - Vec vec2 = vec; + Vec vec2 = std::move(vec); for (Vec::const_iterator it = vec2.begin(); it != vec2.end(); ++it) { @@ -224,7 +224,7 @@ int main(int argc, char ** argv) arr2[i] = "Goodbye, world! " + DB::toString(i); } - arr2 = arr1; + arr2 = std::move(arr1); arr1.resize(n); std::cerr