aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-08 13:38:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-08 13:38:06 +0300
commite1a94ec4ab5d4b946dd848666107f68813491ae2 (patch)
tree1049bf3bd76e85ab84c71a535304a813de4bb539
parent1d8331b3f0750e56d42c4b137f1f4a11ee69154e (diff)
Fix lazy_ptr_base's move assignment operator to copy database and loader pointers
-rw-r--r--odb/lazy-ptr-impl.ixx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/lazy-ptr-impl.ixx b/odb/lazy-ptr-impl.ixx
index d69b8e4..7843dc9 100644
--- a/odb/lazy-ptr-impl.ixx
+++ b/odb/lazy-ptr-impl.ixx
@@ -84,14 +84,14 @@ namespace odb
{
reset_id ();
id_ = r.id_;
- db_ = r.db_;
- loader_ = r.loader_;
free_ = r.free_;
copy_ = r.copy_;
r.id_ = 0;
}
+ db_ = r.db_;
+ loader_ = r.loader_;
return *this;
}
#endif