mirror of
https://github.com/boostorg/contract.git
synced 2026-02-26 16:42:19 +00:00
added .except(...), renamed old_ptr_noncopyable to old_ptr_if_copyable, and renamed OLDOF to OLD
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
int sum(int count, int* array) {
|
||||
int result;
|
||||
boost::contract::guard c = boost::contract::function()
|
||||
boost::contract::check c = boost::contract::function()
|
||||
.precondition([&] {
|
||||
BOOST_CONTRACT_ASSERT(count % 4 == 0);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user