diff --git a/src/mlpack/prereqs.hpp b/src/mlpack/prereqs.hpp index 7a3fea6e0ad..eb172ab15b5 100644 --- a/src/mlpack/prereqs.hpp +++ b/src/mlpack/prereqs.hpp @@ -52,6 +52,7 @@ // Backport this functionality from C++14, if it doesn't exist. #if __cplusplus <= 201103L +#if !defined(_MSC_VER) || _MSC_VER <= 1800 namespace std { template @@ -59,6 +60,7 @@ using enable_if_t = typename enable_if::type; } #endif +#endif // We'll need the necessary boost::serialization features, as well as what we // use with mlpack. In Boost 1.59 and newer, the BOOST_PFTO code is no longer