Closed jwijffels closed 3 years ago
rcpp_doc2vec.cpp: In function ‘Rcpp::DataFrame paragraph2vec_nearest(SEXP, std::string, std::size_t, std::string)’: rcpp_doc2vec.cpp:96:14: warning: ISO C++ forbids variable length array ‘knn_items’ [-Wvla] 96 | knn_item_t knn_items[top_n]; | ^~~~~~~~~ rcpp_doc2vec.cpp: In function ‘Rcpp::List paragraph2vec_nearest_sentence(SEXP, Rcpp::List, std::size_t)’: rcpp_doc2vec.cpp:148:16: warning: ISO C++ forbids variable length array ‘knn_items’ [-Wvla] 148 | knn_item_t knn_items[top_n]; | ^~~~~~~~~
Fixed in pull request https://github.com/bnosac/doc2vec/pull/9
Fixed in https://github.com/bnosac/doc2vec/commit/7bdcb7638f77252e41f260c98e1850f6c29f5426