mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 04:52:22 +00:00
added .except(...), renamed old_ptr_noncopyable to old_ptr_if_copyable, and renamed OLDOF to OLD
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
double mysqrt(double x, double precision = 1e-6) {
|
||||
double result;
|
||||
boost::contract::guard c = boost::contract::function()
|
||||
boost::contract::check c = boost::contract::function()
|
||||
.precondition([&] {
|
||||
BOOST_CONTRACT_ASSERT(x >= 0.0);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user