【发布时间】:2018-12-21 17:00:52
【问题描述】:
取消定义和重新定义宏 bool、true 和 false 的功能已过时,可能会在未来的版本中删除。
也就是说,stdbool.h 已被弃用。但是没有给出任何理由,我也找不到。他们打算永远添加 bool 作为基本类型还是有其他东西?
如果你碰巧知道为什么不推荐使用它,谢谢你告诉我!
【问题讨论】:
-
为什么你认为
stdbool.h已被弃用? -
"ability to undefine and redefine the macros"!=stdbool.h