Skip to content
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

ObjectStorage: port away from std::aligned_storage #2420

Merged
merged 1 commit into from
May 9, 2022
Merged

ObjectStorage: port away from std::aligned_storage #2420

merged 1 commit into from
May 9, 2022

Conversation

marcmutz
Copy link

@marcmutz marcmutz commented May 7, 2022

It's deprecated in C++23. Just use alignas on a char array, wrapped in
a struct to avoid decaying to char*, which is the canonical
implementation of aligned_storage:
https://en.cppreference.com/w/cpp/types/aligned_storage#Possible_implementation

Fixes #2419

Catch3 is not affected.

@codecov
Copy link

codecov bot commented May 7, 2022

Codecov Report

Merging #2420 (8b921e1) into v2.x (d71b461) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v2.x    #2420   +/-   ##
=======================================
  Coverage   90.08%   90.08%           
=======================================
  Files         113      113           
  Lines        5040     5040           
=======================================
  Hits         4540     4540           
  Misses        500      500           

It's deprecated in C++23. Just use alignas on a char array, wrapped in
a struct to avoid decaying to char*, which is the canonical
implementation of aligned_storage:
https://en.cppreference.com/w/cpp/types/aligned_storage#Possible_implementation

Fixes #2419

Catch3 is not affected.
@horenmar horenmar added the Tweak label May 9, 2022
@horenmar
Copy link
Member

horenmar commented May 9, 2022

Ok, thanks.

@horenmar horenmar merged commit ca45581 into catchorg:v2.x May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants