[mlpack-svn] r17392 - mlpack/trunk/src/mlpack
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Nov 19 13:32:47 EST 2014
Author: rcurtin
Date: Wed Nov 19 13:32:46 2014
New Revision: 17392
Log:
Disable C4519 errors entirely.
Modified:
mlpack/trunk/src/mlpack/core.hpp
Modified: mlpack/trunk/src/mlpack/core.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core.hpp (original)
+++ mlpack/trunk/src/mlpack/core.hpp Wed Nov 19 13:32:46 2014
@@ -175,7 +175,7 @@
#include <mlpack/core/kernels/spherical_kernel.hpp>
#include <mlpack/core/kernels/triangular_kernel.hpp>
-// Use armadillo's C++ version detection
+// Use Armadillo's C++ version detection.
#ifdef ARMA_USE_CXX11
#define MLPACK_USE_CX11
#endif
@@ -193,3 +193,10 @@
#undef max
#endif
#endif
+
+// On Visual Studio, disable C4519 (default arguments for function templates)
+// since it's by default an error, which doesn't even make any sense because
+// it's part of the C++11 standard.
+#ifdef _MSC_VER
+ #pragma warning(disable : 4519)
+#endif
More information about the mlpack-svn
mailing list