aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-12-07 15:18:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-01-20 20:09:23 +0300
commitdd5fd399ff351a7a1372cdaaeab26b5fcecb14a9 (patch)
treee44245d36011a2ecacd012511682dc7726c5ebc5
parentd52c494430a73a1bbfec32a68ddf152310342fb6 (diff)
Fix GCC 'implicitly-declared copy constructor is deprecated' warningimplicitly-decl-ctor
Note that since c++11 the generation of the implicit copy constructor is deprecated for a class with a user-defined copy assignment operator.
-rw-r--r--odb/session.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/session.hxx b/odb/session.hxx
index 076e88d..44325da 100644
--- a/odb/session.hxx
+++ b/odb/session.hxx
@@ -149,6 +149,9 @@ namespace odb
cache_position (): map_ (0) {}
cache_position (map& m, const iterator& p): map_ (&m), pos_ (p) {}
+ cache_position (const cache_position& p)
+ : map_ (p.map_), pos_ (p.pos_) {}
+
cache_position&
operator= (const cache_position& p)
{