replaced free/private/protected_function with just function and started to program n1962 examples

This commit is contained in:
Lorenzo Caminiti
2015-06-11 08:02:46 -07:00
parent 7c9db6c58f
commit f0ca795867
49 changed files with 346 additions and 549 deletions

View File

@@ -1,11 +1,11 @@
// Test multiple post error (for free func, but same for all contracts).
#include <boost/contract/free_function.hpp>
#include <boost/contract/function.hpp>
#include <boost/contract/guard.hpp>
void f() {
boost::contract::guard c = boost::contract::free_function()
boost::contract::guard c = boost::contract::function()
.postcondition([] {})
.postcondition([] {}) // Error (multiple post).
;