From e288549c9e146447a0ef15bed381c495aa1b5da9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 31 Jul 2012 00:57:09 +0100 Subject: [PATCH] Make dependent template lookups explicit. Clang (in Xcode 4.4) is being strict about dependent lookup rules, so apply the recommended fix-it. --- simgear/props/ExtendedPropertyAdapter.hxx | 2 +- simgear/props/propertyObject.hxx | 2 +- simgear/scene/material/EffectBuilder.hxx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/simgear/props/ExtendedPropertyAdapter.hxx b/simgear/props/ExtendedPropertyAdapter.hxx index 064f4074..cbe50760 100644 --- a/simgear/props/ExtendedPropertyAdapter.hxx +++ b/simgear/props/ExtendedPropertyAdapter.hxx @@ -46,7 +46,7 @@ public: if (_elements.size() < num_components) throw sg_exception(); for (int i = 0; i < num_components; ++i) - result[i] = _elements[i]->getValue(); + result[i] = _elements[i]->template getValue(); return result; } void set(const T& val) diff --git a/simgear/props/propertyObject.hxx b/simgear/props/propertyObject.hxx index a6d357f8..33c30a45 100644 --- a/simgear/props/propertyObject.hxx +++ b/simgear/props/propertyObject.hxx @@ -108,7 +108,7 @@ public: // conversion operators operator T () const { - return getOrThrow()->getValue(); + return getOrThrow()->template getValue(); } T operator=(const T& aValue) diff --git a/simgear/scene/material/EffectBuilder.hxx b/simgear/scene/material/EffectBuilder.hxx index c9b49e3d..3447024f 100644 --- a/simgear/scene/material/EffectBuilder.hxx +++ b/simgear/scene/material/EffectBuilder.hxx @@ -195,7 +195,7 @@ void findAttr(const effect::EffectPropertyMap& pMap, { using namespace effect; typename EffectPropertyMap::BMap::iterator itr - = pMap._map.get().find(name); + = pMap._map.template get().find(name); if (itr == pMap._map.end()) { throw effect::BuilderException(string("findAttr: could not find attribute ") + string(name)); @@ -233,7 +233,7 @@ const T* findAttr(const effect::EffectPropertyMap& pMap, { using namespace effect; typename EffectPropertyMap::BMap::iterator itr - = pMap._map.get().find(name); + = pMap._map.template get().find(name); if (itr == pMap._map.end()) return 0; else @@ -267,8 +267,8 @@ std::string findName(const effect::EffectPropertyMap& pMap, T value) using namespace effect; std::string result; typename EffectPropertyMap::BMap::template index_iterator::type itr - = pMap._map.get().find(value); - if (itr != pMap._map.get().end()) + = pMap._map.template get().find(value); + if (itr != pMap._map.template get().end()) result = itr->first; return result; } -- 2.39.5