From 80dc9f7d77d183f4073b1b9675ee86c09bdf6fa3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 3 Oct 2019 07:14:43 -0400 Subject: Clear deprecated warnings with early MSVC compilers --- validat3.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'validat3.cpp') diff --git a/validat3.cpp b/validat3.cpp index 64370718..153aa37f 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -221,9 +221,8 @@ bool TestSettings() word32 w; const byte s[] = "\x01\x02\x03\x04"; -#if (_MSC_VER >= 1500) - std::copy(s, s+4, - stdext::make_checked_array_iterator(reinterpret_cast(&w), sizeof(w))); +#if (_MSC_VER >= 1400) + memcpy_s(&w, 4, s, 4); #else std::copy(s, s+4, reinterpret_cast(&w)); #endif -- cgit v1.2.1