mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 17:02:15 +00:00
added .except(...), renamed old_ptr_noncopyable to old_ptr_if_copyable, and renamed OLDOF to OLD
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "../detail/oteststream.hpp"
|
||||
#include <boost/contract/public_function.hpp>
|
||||
#include <boost/contract/guard.hpp>
|
||||
#include <boost/contract/check.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <sstream>
|
||||
|
||||
@@ -21,7 +21,7 @@ struct a {
|
||||
struct err {};
|
||||
|
||||
static void f() {
|
||||
boost::contract::guard c = boost::contract::public_function<a>()
|
||||
boost::contract::check c = boost::contract::public_function<a>()
|
||||
.precondition([] { out << "a::f::pre" << std::endl; })
|
||||
.old([] { out << "a::f::old" << std::endl; })
|
||||
.postcondition([] { out << "a::f::post" << std::endl; })
|
||||
|
||||
Reference in New Issue
Block a user