-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Windows patch to fix AWS bug (see aws/aws-sdk-cpp#3001)
Signed-off-by: AMZN-Gene <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
package-system/AWSNativeSDK/AWSNativeSDK-1.11.344-windows.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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 90b61ccb0f..294a64afb5 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,14 @@ namespace Aws | ||
typedef Allocator<U> other; | ||
}; | ||
|
||
- typename Base::pointer allocate(size_type n, const void *hint = nullptr) | ||
+ typename std::allocator_traits<Base>::pointer allocate(size_type n, const void *hint = nullptr) | ||
{ | ||
AWS_UNREFERENCED_PARAM(hint); | ||
|
||
- return reinterpret_cast<typename Base::pointer>(Malloc("AWSSTL", n * sizeof(T))); | ||
+ return reinterpret_cast<typename std::allocator_traits<Base>::pointer>(Malloc("AWSSTL", n * sizeof(T))); | ||
} | ||
|
||
- void deallocate(typename Base::pointer p, size_type n) | ||
+ void deallocate(typename std::allocator_traits<Base>::pointer p, size_type n) | ||
{ | ||
AWS_UNREFERENCED_PARAM(n); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters