From b7b8e270fd97671c61e805aa4271cf345d7113e7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Jul 2012 16:35:39 +0200 Subject: Add template qualifiers that are missing according to Clang 3.1 --- odb/boost/smart-ptr/lazy-pointer-traits.hxx | 2 +- odb/boost/smart-ptr/lazy-ptr.ixx | 8 ++++++-- odb/boost/smart-ptr/lazy-ptr.txx | 5 +++-- 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'odb') diff --git a/odb/boost/smart-ptr/lazy-pointer-traits.hxx b/odb/boost/smart-ptr/lazy-pointer-traits.hxx index d616824..50fe7f4 100644 --- a/odb/boost/smart-ptr/lazy-pointer-traits.hxx +++ b/odb/boost/smart-ptr/lazy-pointer-traits.hxx @@ -33,7 +33,7 @@ namespace odb static typename object_traits::id_type object_id (const pointer_type& p) { - return p.object_id (); + return p.template object_id (); } }; diff --git a/odb/boost/smart-ptr/lazy-ptr.ixx b/odb/boost/smart-ptr/lazy-ptr.ixx index ecdc2a9..4b9f761 100644 --- a/odb/boost/smart-ptr/lazy-ptr.ixx +++ b/odb/boost/smart-ptr/lazy-ptr.ixx @@ -366,7 +366,9 @@ namespace odb { typedef typename object_traits::object_type object_type; - return p_ ? object_traits::id (*p_) : i_.object_id (); + return p_ + ? object_traits::id (*p_) + : i_.template object_id (); } template @@ -630,7 +632,9 @@ namespace odb typedef typename object_traits::object_type object_type; ::boost::shared_ptr sp (p_.lock ()); - return sp ? object_traits::id (*sp) : i_.object_id (); + return sp + ? object_traits::id (*sp) + : i_.template object_id (); } template diff --git a/odb/boost/smart-ptr/lazy-ptr.txx b/odb/boost/smart-ptr/lazy-ptr.txx index aec409b..ecd3d6d 100644 --- a/odb/boost/smart-ptr/lazy-ptr.txx +++ b/odb/boost/smart-ptr/lazy-ptr.txx @@ -38,7 +38,7 @@ namespace odb typedef typename object_traits::object_type object_type2; return i_.database () == r.i_.database () && - object_id () == r.object_id (); + object_id () == r.template object_id (); } // @@ -61,7 +61,8 @@ namespace odb else { if (i_) - return lazy_shared_ptr (*i_.database (), i_.object_id ()); + return lazy_shared_ptr ( + *i_.database (), i_.template object_id ()); else return lazy_shared_ptr (); } -- cgit v1.1