added a version of check_guard (but without any thread sync yet)

This commit is contained in:
Lorenzo Caminiti
2015-06-05 08:28:41 -07:00
parent d59d75370b
commit aac3e56198
45 changed files with 394 additions and 162 deletions

View File

@@ -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; })
;