From 02dae10966d57d92327c2e5e6b987bf41f5a7054 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Mar 2016 17:55:25 +0200 Subject: Use object_type instead of T in case T is const T1 --- odb/lazy-ptr-impl.txx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odb/lazy-ptr-impl.txx b/odb/lazy-ptr-impl.txx index 9163c33..f12f7fe 100644 --- a/odb/lazy-ptr-impl.txx +++ b/odb/lazy-ptr-impl.txx @@ -28,7 +28,8 @@ namespace odb typename object_traits::pointer_type lazy_ptr_base:: loader (database_type& db, const typename object_traits::id_type& id) { - return static_cast (db).template load (id); + return static_cast (db).template load< + typename object_traits::object_type> (id); } // -- cgit v1.1