From 33fb5d255fd400f1b1b181afdbc30e83df7e2f39 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 12 Jan 2021 08:59:28 -0500 Subject: [PATCH] Try to work around static code analysis issues. --- src/mlpack/methods/rann/ra_model_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlpack/methods/rann/ra_model_impl.hpp b/src/mlpack/methods/rann/ra_model_impl.hpp index e66b3b268a..443964b91a 100644 --- a/src/mlpack/methods/rann/ra_model_impl.hpp +++ b/src/mlpack/methods/rann/ra_model_impl.hpp @@ -83,8 +83,8 @@ void RABiSearchVisitor::SearchLeaf(RAType* ra) const Timer::Start("tree_building"); Log::Info << "Building query tree...."<< std::endl; std::vector oldFromNewQueries; - typename RAType::Tree queryTree(std::move(querySet), oldFromNewQueries, - leafSize); + typedef typename RAType::Tree TreeType + TreeType queryTree(std::move(querySet), oldFromNewQueries, leafSize); Log::Info << "Tree Built." << std::endl; Timer::Stop("tree_building");