From 842344e94bce47d9186f05b35d1b7c8722819798 Mon Sep 17 00:00:00 2001 From: Rian Quinn Date: Wed, 16 Aug 2017 20:06:30 -0600 Subject: [PATCH] turning off warning (#548) using the GSL with MSVC 2017 causes the following warning" `'std::copy_n::_Unchecked_iterators::_Deprecate': Call to 'std::copy_n'` This patch removes this since the point of this code is to deal with this issue. --- include/gsl/gsl_algorithm | 1 + 1 file changed, 1 insertion(+) diff --git a/include/gsl/gsl_algorithm b/include/gsl/gsl_algorithm index 6e81e50..88c1ff7 100644 --- a/include/gsl/gsl_algorithm +++ b/include/gsl/gsl_algorithm @@ -28,6 +28,7 @@ // turn off some warnings that are noisy about our Expects statements #pragma warning(disable : 4127) // conditional expression is constant +#pragma warning(disable : 4996) // unsafe use of std::copy_n // blanket turn off warnings from CppCoreCheck for now // so people aren't annoyed by them when running the tool.