[mlpack] 111/149: Disable C4519 errors entirely.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Sat May 2 09:11:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 09aec0344eee083dfdf9ef74c7162cc234ec6cf0
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Wed Nov 19 18:32:46 2014 +0000
Disable C4519 errors entirely.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17392 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/core.hpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core.hpp b/src/mlpack/core.hpp
index ae36e77..1bb1401 100644
--- a/src/mlpack/core.hpp
+++ b/src/mlpack/core.hpp
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list