diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 15:50:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 15:50:07 +0200 |
commit | 5b27e12cc00c3faf4f8171d4f41a0ec5d155db48 (patch) | |
tree | 69c46d3fc0380d1681283c87bd90227e6e1138ae /odb/relational/inline.hxx | |
parent | 07299aa3a0a840845c5d22b74af30aa0ce3ac9f1 (diff) |
Add support for change-tracking containers
ODB now supports "smart" ordered containers. Such containers get extra
functions for updating and deleting individual elements. Based on this
functionality implement two change-tracking containers: odb::vector
(equivalent to std::vector) and QOdbList (equivalent to QList). New
tests: common/container/change-tracking and qt/common/container/change-
tracking.
Diffstat (limited to 'odb/relational/inline.hxx')
-rw-r--r-- | odb/relational/inline.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index 466e348..24e3a08 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -305,7 +305,8 @@ namespace relational // erase (object_type) // - if (id != 0 && !poly && optimistic == 0) + if (id != 0 && !poly && optimistic == 0 && + !has_a (c, test_smart_container)) { os << "inline" << endl << "void " << traits << "::" << endl |