diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-29 09:58:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 10:07:08 +0200 |
commit | 2c15821eb8a9d6a7f79b7194b23d84dd8bb773c7 (patch) | |
tree | 2c598b57ddfc358914cdefaeec34d32e6c1847db /odb/sqlite/connection.hxx | |
parent | 344fd3309516aaa7faa8d0b91511ed868a5d60a4 (diff) |
Allow active objects to remain on list after call to clear()
Diffstat (limited to 'odb/sqlite/connection.hxx')
-rw-r--r-- | odb/sqlite/connection.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx index 783ef5b..254a002 100644 --- a/odb/sqlite/connection.hxx +++ b/odb/sqlite/connection.hxx @@ -41,8 +41,8 @@ namespace odb class LIBODB_SQLITE_EXPORT active_object { public: - // This function should remove the object from the list, since - // it shall no longer be "active". + // This function may remove the object from the list since it may no + // longer be "active". // virtual void clear () = 0; @@ -57,6 +57,8 @@ namespace odb list_remove (); protected: + friend class connection; + // prev_ == 0 means we are the first element. // next_ == 0 means we are the last element. // next_ == this means we are not on the list (prev_ should be 0). |