Move vector in CSVFilesParser instead copying it (#6470)

This commit is contained in:
Siarhei Fedartsou
2022-12-03 17:53:56 +01:00
committed by GitHub
parent 2044398dfd
commit 73b2a86a95
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ template <typename Key, typename Value> struct CSVFilesParser
util::Log() << "In total loaded " << csv_filenames.size() << " file(s) with a total of "
<< lookup.size() << " unique values";
return LookupTable<Key, Value>{lookup};
return LookupTable<Key, Value>{std::move(lookup)};
}
catch (const std::exception &e)
// TBB should capture to std::exception_ptr and automatically rethrow in this thread.