From dd5fd399ff351a7a1372cdaaeab26b5fcecb14a9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 7 Dec 2019 15:18:59 +0300 Subject: Fix GCC 'implicitly-declared copy constructor is deprecated' warning Note that since c++11 the generation of the implicit copy constructor is deprecated for a class with a user-defined copy assignment operator. --- odb/session.hxx | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.1