mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 17:02:15 +00:00
added oldof test, renamed type to scoped
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
#include "../aux_/oteststream.hpp"
|
||||
#include <boost/contract/free_function.hpp>
|
||||
#include <boost/contract/type.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <sstream>
|
||||
|
||||
@@ -10,7 +9,7 @@
|
||||
boost::contract::aux::test::oteststream out;
|
||||
|
||||
void f() {
|
||||
boost::contract::type c = boost::contract::free_function()
|
||||
auto c = boost::contract::free_function()
|
||||
.precondition([&] {
|
||||
out << "f::pre" << std::endl;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user