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