-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ASan report about alloc/dealloc mismatch when compiled with C++23 #633
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If std::allocator<T>
doesn't have any virtual functions ... does that mean nothing should inherit from it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline, we will backlog this for now. We should probably be using https://docs.ros.org/en/foxy/Tutorials/Advanced/Allocator-Template-Tutorial.html
@@ -51,6 +51,10 @@ namespace Aws | |||
return static_cast<RawPointer>(aws_mem_acquire(m_allocator, n * sizeof(T))); | |||
} | |||
|
|||
#if _LIBCPP_STD_VER > 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need #if here?
does it really matter if we expose it in all versions of cpp standard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::allocation_result was added in _LIBCPP_STD_VER > 20
This reverts commit 0948921.
Issue #, if available:
Description of changes:
Duplicate of #629 to fix lint and submodules
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.