Skip to content

Commit

Permalink
Compiles on VC14
Browse files Browse the repository at this point in the history
  • Loading branch information
theSundayProgrammer authored and rcurtin committed Nov 24, 2015
1 parent ec8a151 commit d4e6af5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/mlpack/core/util/arma_config.hpp
@@ -0,0 +1,16 @@
/**
* @file arma_config_check.hpp
* @author Ryan Curtin
*
* Using the contents of arma_config.hpp, try to catch the condition where the
* user has included mlpack with ARMA_64BIT_WORD enabled but mlpack was compiled
* without ARMA_64BIT_WORD enabled. This should help prevent a long, drawn-out
* debugging process where nobody can figure out why the stack is getting
* mangled.
*/
#ifndef __MLPACK_CORE_UTIL_ARMA_CHECK_HPP
#define __MLPACK_CORE_UTIL_ARMA_CHECK_HPP



#endif
3 changes: 2 additions & 1 deletion src/mlpack/methods/neighbor_search/ns_model.hpp
Expand Up @@ -64,7 +64,8 @@ class NSModel
using NSType = NeighborSearch<SortPolicy,
metric::EuclideanDistance,
arma::mat,
TreeType>;
TreeType,
TreeType<metric::EuclideanDistance, NeighborSearchStat<SortPolicy>,arma::mat>::template DualTreeTraverser>;

// Only one of these pointers will be non-NULL.
NSType<tree::KDTree>* kdTreeNS;
Expand Down

0 comments on commit d4e6af5

Please sign in to comment.