Repository navigation
Improve no_destructor.h - #896
frederick-vs-ja wants to merge 3 commits into
Conversation
1. Removed dependency on std::aligned_storage (which will be deprecated in C++23; see also cplusplus/papers#197). 2. Removed redundant static_assert's. 3. Guaranteed the placement new-expression calls global operator new.
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
pwnall
left a comment
There was a problem hiding this comment.
Thank you for this contribution! I appreciate the explanation and the link to the C++23 paper.
Can you please add back the static_asserts? If CI still passes with them, I'd like to merge this.
|
Any chance this can be picked up again? |
|
@pwnall Would you mind re-reviewing this? |
|
Most changes were superseded by commit 302786e. @pwnall But I still think there're should be some pedantic changes:
|
std::aligned_storage(which will be deprecated in C++23; see also P1413 Deprecate std::aligned_storage and std::aligned_union cplusplus/papers#197).static_asserts.operator new.