added deep search of inheritance graph

This commit is contained in:
Lorenzo Caminiti
2015-10-29 19:51:05 -07:00
parent 35d14e5e61
commit a88e67c131
16 changed files with 501 additions and 64 deletions

View File

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