Make std::meta::exception::what consteval

This enables implementing CWG 3115.
This commit is contained in:
Marek Polacek
2025-11-11 17:55:21 -05:00
parent 62702e80d1
commit a717febf18

View File

@@ -112,7 +112,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
exception& operator=(const exception&) = default;
exception& operator=(exception&&) = default;
constexpr const char *what() const noexcept override
consteval const char *what() const noexcept override
{
// If u8string is not empty and string is empty, conversion
// from UTF-8 to ordinary literal encoding failed.