[libc++] vector<bool>::at()
not marked as constexpr in libc++
#121844
Labels
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
The current implementation of
vector<bool>::at()
is not marked as constexpr in libc++, violating the C++20 standard, which requires all member functions ofstd::vector
to be constexpr.Godbolt Link
The above code fails to compile in libc++, with the following error message:
We should mark the
vector<bool>::at()
member function as constexpr in libc++ to ensure compliance with the C++20 standard,The text was updated successfully, but these errors were encountered: