From 801cee821949ccafd644b06364c0a2c01148e63a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Jul 2012 16:35:38 +0200 Subject: Add template qualifiers that are missing according to Clang 3.1 --- odb/lazy-pointer-traits.hxx | 8 ++++---- odb/lazy-ptr.ixx | 18 +++++++++++++----- odb/lazy-ptr.txx | 9 +++++---- odb/tr1/lazy-pointer-traits.hxx | 2 +- odb/tr1/lazy-ptr.ixx | 8 ++++++-- odb/tr1/lazy-ptr.txx | 5 +++-- 6 files changed, 32 insertions(+), 18 deletions(-) diff --git a/odb/lazy-pointer-traits.hxx b/odb/lazy-pointer-traits.hxx index 5273db1..f284ba0 100644 --- a/odb/lazy-pointer-traits.hxx +++ b/odb/lazy-pointer-traits.hxx @@ -34,7 +34,7 @@ namespace odb static typename object_traits::id_type object_id (const pointer_type& p) { - return p.object_id (); + return p.template object_id (); } }; @@ -59,7 +59,7 @@ namespace odb static typename object_traits::id_type object_id (const pointer_type& p) { - return p.object_id (); + return p.template object_id (); } }; @@ -85,7 +85,7 @@ namespace odb static typename object_traits::id_type object_id (const pointer_type& p) { - return p.object_id (); + return p.template object_id (); } }; @@ -110,7 +110,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/lazy-ptr.ixx b/odb/lazy-ptr.ixx index 19150ef..08f3e5e 100644 --- a/odb/lazy-ptr.ixx +++ b/odb/lazy-ptr.ixx @@ -180,7 +180,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 @@ -460,7 +462,7 @@ namespace odb return p_.get () != 0 ? object_traits::id (*p_) - : i_.object_id (); + : i_.template object_id (); } template @@ -768,7 +770,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 @@ -1308,7 +1312,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 @@ -1601,7 +1607,9 @@ namespace odb typedef typename object_traits::object_type object_type; std::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/lazy-ptr.txx b/odb/lazy-ptr.txx index fdc304b..039448a 100644 --- a/odb/lazy-ptr.txx +++ b/odb/lazy-ptr.txx @@ -36,7 +36,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 (); } #ifdef ODB_CXX11 @@ -73,7 +73,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 (); } // @@ -108,7 +108,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 (); } // @@ -131,7 +131,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 (); } diff --git a/odb/tr1/lazy-pointer-traits.hxx b/odb/tr1/lazy-pointer-traits.hxx index 6fd1fbf..aefab8c 100644 --- a/odb/tr1/lazy-pointer-traits.hxx +++ b/odb/tr1/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/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::object_type object_type; - return p_ ? object_traits::id (*p_) : i_.object_id (); + return p_ + ? object_traits::id (*p_) + : i_.template object_id (); } template @@ -593,7 +595,9 @@ namespace odb typedef typename object_traits::object_type object_type; std::tr1::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/tr1/lazy-ptr.txx b/odb/tr1/lazy-ptr.txx index 3299ec2..65400f8 100644 --- a/odb/tr1/lazy-ptr.txx +++ b/odb/tr1/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