📜  logic_error - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:20.110000             🧑  作者: Mango

代码示例1
violation of logical preconditions or class invariants.

These errors are presumably detectable before
the program executes.
It is a assertion replacment in release build, in situation
when crashing is unacceptable option we can customize our 
exception handling via this mechanism.