mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
Make std::meta::exception::what consteval
This enables implementing CWG 3115.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user