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,19 @@
// Test constructor cannot use `.precondition(...)`.
#include <boost/contract/constructor.hpp>
#include <boost/contract/guard.hpp>
struct a {
a() {
boost::contract::guard c = boost::contract::constructor(this)
.precondition([] {}) // Error (must use constructor_precondition).
;
}
};
int main() {
a aa;
return 0;
}