[mlpack-svn] [MLPACK] #369: visual studio compilation failure in x_tree_split.hpp

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Wed Sep 24 11:54:46 EDT 2014


#369: visual studio compilation failure in x_tree_split.hpp
---------------------+------------------------------------------------------
 Reporter:  rcurtin  |        Owner:                             
     Type:  defect   |       Status:  new                        
 Priority:  minor    |    Milestone:  mlpack 1.1.0               
Component:  mlpack   |     Keywords:  x tree, tree, rectangletree
 Blocking:           |   Blocked By:                             
---------------------+------------------------------------------------------
 Reported in IRC:

 {{{
 15:47 < SinisterMJ> Funny enough, the latest trunk has another compilation
 error with VS. Error 23:error C2864:
 'mlpack::tree::XTreeSplit<DescentType,StatisticType,MatType>::MAX_OVERLAP'
 : only static const integral data members can be initialized within a
 class:\mlpack\src\mlpack\core\tree\rectangle_tree\x_tree_split.hpp:33
 15:49 < SinisterMJ> This error doesn't touch me, and I fixed it for me by
 making it non-static, but still fyi
 }}}

 Making the variable non-static does not work with gcc (and presumably
 clang), though.  I don't have a chance to look into this right now, but I
 think the solution may simply be a bit of refactoring or some other simple
 change.

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/369>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed at Georgia Tech.


More information about the mlpack-svn mailing list