added a version of check_guard (but without any thread sync yet)

This commit is contained in:
Lorenzo Caminiti
2015-06-05 08:28:41 -07:00
parent d59d75370b
commit aac3e56198
45 changed files with 394 additions and 162 deletions

View File

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