// Test multi post around pre error (for free func, but same for all contracts). #include #include void f() { boost::contract::scoped c = boost::contract::free_function() .postcondition([] {}) .precondition([] {}) .postcondition([] {}) // Error (multiple post around pre). ; } int main() { f(); return 0; }