mirror of
https://github.com/fmang/opustags.git
synced 2024-11-13 00:42:46 +01:00
error: static assertion of the list of messages
This commit is contained in:
parent
1866dbd1f0
commit
9ed2b82b4a
@ -17,6 +17,8 @@ static const char* messages[] = {
|
||||
"Overflowing comment data",
|
||||
};
|
||||
|
||||
static_assert(sizeof(messages) / sizeof(*messages) == static_cast<size_t>(ot::status::sentinel));
|
||||
|
||||
const char* ot::error_message(ot::status code)
|
||||
{
|
||||
if (code == ot::status::standard_error)
|
||||
|
Loading…
Reference in New Issue
Block a user