added .except(...), renamed old_ptr_noncopyable to old_ptr_if_copyable, and renamed OLDOF to OLD

This commit is contained in:
Lorenzo Caminiti
2016-08-21 09:54:10 -07:00
parent a2ac52ffd7
commit ff02b449dd
163 changed files with 1808 additions and 1491 deletions

View File

@@ -10,7 +10,7 @@
#include <boost/contract/core/config.hpp>
#ifndef BOOST_CONTRACT_NO_PUBLIC_FUNCTIONS
#include <boost/contract/public_function.hpp>
#include <boost/contract/guard.hpp>
#include <boost/contract/check.hpp>
#include <boost/contract/old.hpp>
#endif
#include <boost/detail/lightweight_test.hpp>
@@ -26,10 +26,10 @@ struct a {
static void f(int x) {
#ifndef BOOST_CONTRACT_NO_POSTCONDITIONS
boost::contract::old_ptr<int> old_x = BOOST_CONTRACT_OLDOF(x);
boost::contract::old_ptr<int> old_x = BOOST_CONTRACT_OLD(x);
#endif
#ifndef BOOST_CONTRACT_NO_PUBLIC_FUNCTIONS
boost::contract::guard c = boost::contract::public_function<a>()
boost::contract::check c = boost::contract::public_function<a>()
#ifndef BOOST_CONTRACT_NO_PRECONDITIONS
.precondition([] { out << "a::f::pre" << std::endl; })
#endif