// Test destructor cannot use `.precondition(...)`. #include #include struct a { ~a() { boost::contract::var contract = boost::contract::destructor(this) .precondition([] {}) // Error (no func arg so never pre). ; } }; int main() { a aa; return 0; }