Specifying a violation handler for contracts
问题 Support for contract based programming in C++ was adopted ino the C++20 working draft in Rapperswil. One part of this language feature is this notion of a violation handler which will be invoked when a contract is violated. Herb Sutter's trip report states that: You get to install your own violation handler and ship a release build with the option of turning on enforcement at run time. But the wording in [dcl.attr.contract] that this paper added says: The violation handler of a program is a