diff --git a/src/fasttext.cc b/src/fasttext.cc index 43f53be..454dab2 100644 --- a/src/fasttext.cc +++ b/src/fasttext.cc @@ -749,7 +749,7 @@ std::shared_ptr FastText::getInputMatrixFromFile( for (size_t i = 0; i < n; i++) { std::string word; in >> word; - words.push_back(std::move(word)); + words.push_back(word); dict_->add(word); for (size_t j = 0; j < dim; j++) { in >> mat.at(i, j);