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