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