aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-22 17:55:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-22 17:55:25 +0200
commit02dae10966d57d92327c2e5e6b987bf41f5a7054 (patch)
treebf57718f10e2ad286a307f18360e487bfe3bece1
parent46a745c3cfd24c1e2df989850ffea26362094ddb (diff)
Use object_type instead of T in case T is const T1
-rw-r--r--odb/lazy-ptr-impl.txx3
1 files changed, 2 insertions, 1 deletions
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<T>::pointer_type lazy_ptr_base::
loader (database_type& db, const typename object_traits<T>::id_type& id)
{
- return static_cast<DB&> (db).template load<T> (id);
+ return static_cast<DB&> (db).template load<
+ typename object_traits<T>::object_type> (id);
}
//