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 90b61ccb0f1..efa1c8340f8 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 @@ -62,14 +62,16 @@ namespace Aws typedef Allocator other; }; - typename Base::pointer allocate(size_type n, const void *hint = nullptr) + using RawPointer = typename std::allocator_traits>::pointer; + + RawPointer allocate(size_type n, const void *hint = nullptr) { AWS_UNREFERENCED_PARAM(hint); - return reinterpret_cast(Malloc("AWSSTL", n * sizeof(T))); + return reinterpret_cast(Malloc("AWSSTL", n * sizeof(T))); } - void deallocate(typename Base::pointer p, size_type n) + void deallocate(RawPointer p, size_type n) { AWS_UNREFERENCED_PARAM(n);