Re:Show HN: Design by Contract (tm) – C++
by Bambo on Monday December 14, 2020 @03:41PM
(#25422984)
You can't implement the assertions at compile time since they are predicates evaluated at runtime. This is also why it is a performance hit on the code. I chose to use C-style macros because it is easier to debug than templates.
[ Parent
| on HN ]
There are no comments on this comment yet.