Talk:CPP/Debugging/Assert

From ProgrammingExamples
Jump to: navigation, search

I've heard that assert should be used only to test "contractual" function things. That is, in this example you have used it to verify a password, but that is more of a "runtime" check than a "function contract" check. Any thoughts on this? Daviddoria 10:51, 29 June 2010 (UTC)