Library to facilitate the use of the “design by contract” principle [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Is there any library that aids in implementing the design by contract principle in a C++ application? In particular, I'm looking for a library that facilities the usage of the principle, something like this. 回答1: I followed the teachings of the following articles: An exception or a bug? (Miro Samek, C/C++ Users