aboutsummaryrefslogtreecommitdiff
path: root/odb/tr1/lazy-ptr.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/tr1/lazy-ptr.ixx')
-rw-r--r--odb/tr1/lazy-ptr.ixx8
1 files changed, 6 insertions, 2 deletions
diff --git a/odb/tr1/lazy-ptr.ixx b/odb/tr1/lazy-ptr.ixx
index 2fb76a9..a29eaad 100644
--- a/odb/tr1/lazy-ptr.ixx
+++ b/odb/tr1/lazy-ptr.ixx
@@ -329,7 +329,9 @@ namespace odb
{
typedef typename object_traits<T>::object_type object_type;
- return p_ ? object_traits<object_type>::id (*p_) : i_.object_id<O> ();
+ return p_
+ ? object_traits<object_type>::id (*p_)
+ : i_.template object_id<O> ();
}
template <class T>
@@ -593,7 +595,9 @@ namespace odb
typedef typename object_traits<T>::object_type object_type;
std::tr1::shared_ptr<T> sp (p_.lock ());
- return sp ? object_traits<object_type>::id (*sp) : i_.object_id<O> ();
+ return sp
+ ? object_traits<object_type>::id (*sp)
+ : i_.template object_id<O> ();
}
template <class T>