From f226630db652299b402bc74563b67d6d12b78c63 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Fri, 20 Oct 2023 03:13:08 +0300 Subject: [PATCH] Remove using `stdext::checked_array_iterator`. It will be deprecated in Visual Studio 17.8, does not exist in MinGW, and the uses of it in the SDK would never fail. --- .../include/aws/core/utils/Array.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/aws-cpp-sdk-core/include/aws/core/utils/Array.h b/src/aws-cpp-sdk-core/include/aws/core/utils/Array.h index 2b5bbc566da..89a35c28d9c 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/utils/Array.h +++ b/src/aws-cpp-sdk-core/include/aws/core/utils/Array.h @@ -54,11 +54,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 - std::copy(arrayToCopy, arrayToCopy + arraySize, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); -#else std::copy(arrayToCopy, arrayToCopy + arraySize, m_data.get()); -#endif // MSVC } } @@ -82,11 +78,7 @@ namespace Aws if(arr->m_size > 0 && arr->m_data) { size_t arraySize = arr->m_size; -#ifdef _WIN32 - std::copy(arr->m_data.get(), arr->m_data.get() + arraySize, stdext::checked_array_iterator< T * >(m_data.get() + location, m_size)); -#else std::copy(arr->m_data.get(), arr->m_data.get() + arraySize, m_data.get() + location); -#endif // MSVC location += arraySize; } } @@ -101,11 +93,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 - std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); -#else std::copy(other.m_data.get(), other.m_data.get() + other.m_size, m_data.get()); -#endif // MSVC } } @@ -134,11 +122,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 - std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); -#else std::copy(other.m_data.get(), other.m_data.get() + other.m_size, m_data.get()); -#endif // MSVC } return *this;