mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 04:52:22 +00:00
added a version of check_guard (but without any thread sync yet)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "../aux_/oteststream.hpp"
|
||||
#include <boost/contract/free_function.hpp>
|
||||
#include <boost/contract/scoped.hpp>
|
||||
#include <boost/contract/guard.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <sstream>
|
||||
|
||||
@@ -12,7 +12,7 @@ boost::contract::aux::test::oteststream out;
|
||||
struct e {};
|
||||
|
||||
void f() {
|
||||
boost::contract::scoped c = boost::contract::free_function()
|
||||
boost::contract::guard c = boost::contract::free_function()
|
||||
.precondition([&] { out << "f::pre" << std::endl; })
|
||||
.postcondition([&] { out << "f::post" << std::endl; })
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user