Resolve TODO in aligned_allocator#2298
Resolve TODO in aligned_allocator#2298scuzqy wants to merge 1 commit intogoogle:masterfrom scuzqy:AlignedAllocatorPOD
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
jan-wassenberg
left a comment
There was a problem hiding this comment.
Thank you for adding this :)
|
Will this be merged? |
|
Thanks for following up. I see that our internal CI had failed and blocked the merge. Investigating.. |
|
Mind if we change the check to: ? We have internal users that trip over the standard layout and trivial requirements. |
Sure. Thanks for checking! |
And updated corresponding test. AllocateAligned was designed to take trivial types only.
|
Merged with the proposed modification. Thanks again! |
And updated corresponding test.
AllocateAligned was designed to take POD types only.
I also removed
TestAllocateAlignedObjectWithoutDestructorbecause objects with constructor/destructor are obviously illegal input.btw, restriction here can be one
is_trivial, perhaps?