From 261863a5037ba892ec33eb037d77736c8e599369 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Feb 2013 12:22:04 +0200 Subject: Test change-tracking container and reuse inheritance --- common/inheritance/reuse/test.hxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'common/inheritance/reuse/test.hxx') diff --git a/common/inheritance/reuse/test.hxx b/common/inheritance/reuse/test.hxx index 8222f97..2b566ef 100644 --- a/common/inheritance/reuse/test.hxx +++ b/common/inheritance/reuse/test.hxx @@ -9,16 +9,18 @@ #include #include +#include #pragma db value struct comp_base { std::vector bools; + odb::vector obools; bool operator== (const comp_base& y) const { - return bools == y.bools; + return bools == y.bools && obools == y.obools; } }; @@ -29,6 +31,7 @@ struct comp: comp_base std::string str; std::vector nums; + odb::vector onums; bool operator== (const comp& y) const @@ -37,7 +40,8 @@ struct comp: comp_base static_cast (*this) == y && num == y.num && str == y.str && - nums == y.nums; + nums == y.nums && + onums == y.onums; } }; @@ -50,6 +54,7 @@ struct abstract_base std::string str_; std::vector strs_; + odb::vector ostrs_; bool operator== (const abstract_base& y) const @@ -58,7 +63,8 @@ struct abstract_base comp_ == y.comp_ && num_ == y.num_ && str_ == y.str_ && - strs_ == y.strs_; + strs_ == y.strs_ && + ostrs_ == y.ostrs_; } }; -- cgit v1.1