mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 04:52:22 +00:00
finshed a first round of test, starting examples
This commit is contained in:
@@ -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).
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user