diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-08 12:22:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-08 12:53:12 +0200 |
commit | 261863a5037ba892ec33eb037d77736c8e599369 (patch) | |
tree | 9474d4eb6915c32226576081df28c8b3ad8f4a2b /common/inheritance/reuse/test.hxx | |
parent | f4131327a7d768689b18dd9cc1c1c64fa6c21d1f (diff) |
Test change-tracking container and reuse inheritance
Diffstat (limited to 'common/inheritance/reuse/test.hxx')
-rw-r--r-- | common/inheritance/reuse/test.hxx | 12 |
1 files changed, 9 insertions, 3 deletions
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 <vector> #include <odb/core.hxx> +#include <odb/vector.hxx> #pragma db value struct comp_base { std::vector<unsigned char> bools; + odb::vector<unsigned char> 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<unsigned int> nums; + odb::vector<unsigned int> onums; bool operator== (const comp& y) const @@ -37,7 +40,8 @@ struct comp: comp_base static_cast<const comp_base&> (*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<std::string> strs_; + odb::vector<std::string> 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_; } }; |