diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-03 07:14:43 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-03 07:14:43 -0400 |
commit | 80dc9f7d77d183f4073b1b9675ee86c09bdf6fa3 (patch) | |
tree | 1b7b319a69760d17158ec89cbbcf96cdedce7f3a /validat3.cpp | |
parent | 6e06c8cbf29ba7085264c69324fb47653c68b175 (diff) | |
download | cryptopp-git-80dc9f7d77d183f4073b1b9675ee86c09bdf6fa3.tar.gz |
Clear deprecated warnings with early MSVC compilers
Diffstat (limited to 'validat3.cpp')
-rw-r--r-- | validat3.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<byte*>(&w), sizeof(w)));
+#if (_MSC_VER >= 1400)
+ memcpy_s(&w, 4, s, 4);
#else
std::copy(s, s+4, reinterpret_cast<byte*>(&w));
#endif
|