You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lack of constexpr was deliberate - since _Vaporization_guard objects are only created and destroyed during exception handling, which can't happen during exception at this moment.
However, WG21-P3068R6 makes exception handling compatible with constant evaluation, and the paper is recently adopted for C++26. So we need to add _CONSTEXPR26 once P3068 gets implemented (which means that this issue is blocked until that moment).
The text was updated successfully, but these errors were encountered:
frederick-vs-ja
changed the title
<vector>: Add _CONSTEXPR26 to _Vaporization_guard's destructor once P3068R5 gets implemented<vector>: Add _CONSTEXPR26 to _Vaporization_guard's destructor once P3068R6 gets implemented
Nov 23, 2024
#4977 added several scope guard types to our implementation of
vector
, while one of them doesn't haveconstexpr
destructor yet.STL/stl/inc/vector
Lines 637 to 645 in 5e0ddad
Lack of
constexpr
was deliberate - since_Vaporization_guard
objects are only created and destroyed during exception handling, which can't happen during exception at this moment.However, WG21-P3068R6 makes exception handling compatible with constant evaluation, and the paper is recently adopted for C++26. So we need to add
_CONSTEXPR26
once P3068 gets implemented (which means that this issue is blocked until that moment).The text was updated successfully, but these errors were encountered: