Add comment to static_assert
The C++11 version requires a second parameter.
This commit is contained in:
@ -2077,7 +2077,7 @@ static void store_data(MXS_MONITOR *monitor, MXS_MONITORED_SERVER *master, uint8
|
||||
*ptr++ = '\0'; // Null-terminate the string
|
||||
|
||||
auto status = db->server->status;
|
||||
static_assert(sizeof(status) == MMB_LEN_SERVER_STATUS);
|
||||
static_assert(sizeof(status) == MMB_LEN_SERVER_STATUS, "Status size should be MMB_LEN_SERVER_STATUS bytes");
|
||||
ptr = maxscale::set_byteN(ptr, status, MMB_LEN_SERVER_STATUS);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user