forked from WG21-SG14/SG14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inplace_function] Really 100% stop using aligned_storage/alignment_of.
Even when `SG14_USE_STD_ALIGNED_STORAGE` was false, there was still one use of `std::aligned_storage_t`, which is no longer OK in C++23 because `std::aligned_storage_t` is finally formally deprecated. Also, the unit tests were still relying on `alignment_of`, when they could just use the C++11 `alignof` keyword. Update that too. Finally, fix a defect: `sg14::aligned_storage_t<2>` had alignment 1 instead of alignment 2. This didn't affect `inplace_function`, though, because the function-pointer member dominates its observable alignment.
- Loading branch information
1 parent
66692d1
commit 6a69c6e
Showing
2 changed files
with
17 additions
and
30 deletions.
There are no files selected for viewing
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
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