aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
//