2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

[#1071] static assert if sizeof(bool) is not 1

This commit is contained in:
Razvan Becheriu 2020-01-23 09:05:42 +02:00 committed by Tomek Mrugalski
parent 1e40f7d308
commit 9be381b796

View File

@ -27,6 +27,9 @@ const my_bool MLM_FALSE = 0;
const my_bool MLM_TRUE = 1;
#else
///@brief check for bool size
static_assert(sizeof(bool) == 1, "unsupported bool size");
/// @brief my_bool type in MySQL 8.x.
typedef bool my_bool;