Move vector in CSVFilesParser instead copying it
This commit is contained in:
parent
2044398dfd
commit
18a1b7aa0f
@ -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 "
|
util::Log() << "In total loaded " << csv_filenames.size() << " file(s) with a total of "
|
||||||
<< lookup.size() << " unique values";
|
<< lookup.size() << " unique values";
|
||||||
|
|
||||||
return LookupTable<Key, Value>{lookup};
|
return LookupTable<Key, Value>{std::move(lookup)};
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::exception &e)
|
||||||
// TBB should capture to std::exception_ptr and automatically rethrow in this thread.
|
// TBB should capture to std::exception_ptr and automatically rethrow in this thread.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user