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

P1413R3 Deprecate aligned_storage & aligned_union #2583

Merged
merged 16 commits into from
May 17, 2022
Prev Previous commit
Next Next commit
one more occurrence
AlexGuteniev committed Feb 19, 2022
commit 68df7e0383ce61647de5bed2746403a36bd336cc
2 changes: 1 addition & 1 deletion stl/inc/algorithm
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ struct _Optimistic_temporary_buffer { // temporary storage with _alloca-like att

_Ty* _Data; // points to heap memory iff _Capacity > _Optimistic_count
ptrdiff_t _Capacity;
aligned_union_t<0, _Ty> _Stack_space[_Optimistic_count];
typename _Aligned_storage<sizeof(_Ty), alignof(_Ty)>::type _Stack_space[_Optimistic_count];
};

#ifdef __cpp_lib_concepts