diff --git a/src/mlpack/methods/neighbor_search/ns_model_impl.hpp b/src/mlpack/methods/neighbor_search/ns_model_impl.hpp index 5eb5511273..1245ab83b7 100644 --- a/src/mlpack/methods/neighbor_search/ns_model_impl.hpp +++ b/src/mlpack/methods/neighbor_search/ns_model_impl.hpp @@ -452,7 +452,7 @@ void NSModel::Search(const size_t k, //! Get the name of the tree type. template -void NSModel::TreeName() const +std::string NSModel::TreeName() const { switch (treeType) {