mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[#1071] static assert if sizeof(bool) is not 1
This commit is contained in:
committed by
Tomek Mrugalski
parent
1e40f7d308
commit
9be381b796
@@ -27,6 +27,9 @@ const my_bool MLM_FALSE = 0;
|
|||||||
const my_bool MLM_TRUE = 1;
|
const my_bool MLM_TRUE = 1;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
///@brief check for bool size
|
||||||
|
static_assert(sizeof(bool) == 1, "unsupported bool size");
|
||||||
|
|
||||||
/// @brief my_bool type in MySQL 8.x.
|
/// @brief my_bool type in MySQL 8.x.
|
||||||
typedef bool my_bool;
|
typedef bool my_bool;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user