added const volatile invariants

This commit is contained in:
Lorenzo Caminiti
2015-11-11 07:47:36 -08:00
parent 72eb227bcf
commit 8e9d7474f1
63 changed files with 1362 additions and 192 deletions

View File

@@ -13,8 +13,8 @@
boost::contract::aux::test::oteststream out;
struct a {
void invariant() const { out << "a::inv" << std::endl; }
static void static_invariant() { out << "a::static_inv" << std::endl; }
void invariant() const { out << "a::inv" << std::endl; }
struct x_tag;
typedef boost::contract::aux::test::counter<x_tag, int> x_type;
@@ -46,8 +46,8 @@ bool call_f() {
}
struct b {
void invariant() const { out << "b::inv" << std::endl; }
static void static_invariant() { out << "b::static_inv" << std::endl; }
void invariant() const { out << "b::inv" << std::endl; }
void g() {
boost::contract::guard c = boost::contract::public_function(this)