finshed a first round of test, starting examples

This commit is contained in:
Lorenzo Caminiti
2015-06-04 07:04:12 -07:00
parent 3e1fe20b01
commit d59d75370b
64 changed files with 1505 additions and 1348 deletions

View File

@@ -1,12 +1,12 @@
// Test constructor cannot use `.precondition(...)`.
#include <boost/contract/scoped.hpp>
#include <boost/contract/constructor.hpp>
#include <boost/contract/scoped.hpp>
struct a {
a() {
boost::contract::scoped contract = boost::contract::constructor(this)
boost::contract::scoped c = boost::contract::constructor(this)
.precondition([] {}) // Error (must use constructor_precondition).
;
}