diff --git a/src/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSAllocator.h b/src/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSAllocator.h index efa1c8340f84..2043b83de2b3 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSAllocator.h +++ b/src/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSAllocator.h @@ -71,6 +71,13 @@ namespace Aws return reinterpret_cast(Malloc("AWSSTL", n * sizeof(T))); } +#if defined(__cpp_lib_allocate_at_least) + std::allocation_result allocate_at_least(size_type n) + { + return {allocate(n), n}; + } +#endif + void deallocate(RawPointer p, size_type n) { AWS_UNREFERENCED_PARAM(n);