[mlpack-svn] r16368 - mlpack/trunk/src/mlpack/core/util

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Mar 11 23:51:08 EDT 2014


Author: birm
Date: Tue Mar 11 23:51:08 2014
New Revision: 16368

Log:
Fixed arma_traits by removing duplicate template instantiation, so that visual studio would be able to use it too.


Modified:
   mlpack/trunk/src/mlpack/core/util/arma_traits.hpp

Modified: mlpack/trunk/src/mlpack/core/util/arma_traits.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/util/arma_traits.hpp	(original)
+++ mlpack/trunk/src/mlpack/core/util/arma_traits.hpp	Tue Mar 11 23:51:08 2014
@@ -32,42 +32,44 @@
   const static bool value = false;
 };
 
-template<>
+// Commenting out the first template per case, because 
+//Visual Studio doesn't like this instantiaion pattern (error C2910).
+//template<>
 template<typename eT>
 struct IsVector<arma::Col<eT> >
 {
   const static bool value = true;
 };
 
-template<>
+//template<>
 template<typename eT>
 struct IsVector<arma::SpCol<eT> >
 {
   const static bool value = true;
 };
 
-template<>
+//template<>
 template<typename eT>
 struct IsVector<arma::Row<eT> >
 {
   const static bool value = true;
 };
 
-template<>
+//template<>
 template<typename eT>
 struct IsVector<arma::SpRow<eT> >
 {
   const static bool value = true;
 };
 
-template<>
+//template<>
 template<typename eT>
 struct IsVector<arma::subview_col<eT> >
 {
   const static bool value = true;
 };
 
-template<>
+//template<>
 template<typename eT>
 struct IsVector<arma::subview_row<eT> >
 {
@@ -76,7 +78,8 @@
 
 // I'm not so sure about this one.  An SpSubview object can be a row or column,
 // but it can also be a matrix subview.
-template<>
+
+//template<>
 template<typename eT>
 struct IsVector<arma::SpSubview<eT> >
 {



More information about the mlpack-svn mailing list