Make dependent template lookups explicit.
Clang (in Xcode 4.4) is being strict about dependent lookup rules, so apply the recommended fix-it.
This commit is contained in:
parent
f71f129e3b
commit
e288549c9e
@ -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<double>();
|
||||
result[i] = _elements[i]->template getValue<double>();
|
||||
return result;
|
||||
}
|
||||
void set(const T& val)
|
||||
|
@ -108,7 +108,7 @@ public:
|
||||
// conversion operators
|
||||
operator T () const
|
||||
{
|
||||
return getOrThrow()->getValue<T>();
|
||||
return getOrThrow()->template getValue<T>();
|
||||
}
|
||||
|
||||
T operator=(const T& aValue)
|
||||
|
@ -195,7 +195,7 @@ void findAttr(const effect::EffectPropertyMap<T>& pMap,
|
||||
{
|
||||
using namespace effect;
|
||||
typename EffectPropertyMap<T>::BMap::iterator itr
|
||||
= pMap._map.get<from>().find(name);
|
||||
= pMap._map.template get<from>().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<T>& pMap,
|
||||
{
|
||||
using namespace effect;
|
||||
typename EffectPropertyMap<T>::BMap::iterator itr
|
||||
= pMap._map.get<from>().find(name);
|
||||
= pMap._map.template get<from>().find(name);
|
||||
if (itr == pMap._map.end())
|
||||
return 0;
|
||||
else
|
||||
@ -267,8 +267,8 @@ std::string findName(const effect::EffectPropertyMap<T>& pMap, T value)
|
||||
using namespace effect;
|
||||
std::string result;
|
||||
typename EffectPropertyMap<T>::BMap::template index_iterator<to>::type itr
|
||||
= pMap._map.get<to>().find(value);
|
||||
if (itr != pMap._map.get<to>().end())
|
||||
= pMap._map.template get<to>().find(value);
|
||||
if (itr != pMap._map.template get<to>().end())
|
||||
result = itr->first;
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user