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; }