mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 17:02:15 +00:00
replaced free/private/protected_function with just function and started to program n1962 examples
This commit is contained in:
@@ -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).
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user