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